Ticket #9742: kml_mimetype_fix.diff

File kml_mimetype_fix.diff, 598 bytes (added by jbronn, 15 years ago)
  • django/contrib/gis/shortcuts.py

     
    1414def render_to_kml(*args, **kwargs):
    1515    "Renders the response as KML (using the correct MIME type)."
    1616    return HttpResponse(loader.render_to_string(*args, **kwargs),
    17                         mimetype='application/vnd.google-earth.kml+xml kml')
     17                        mimetype='application/vnd.google-earth.kml+xml')
    1818
    1919def render_to_kmz(*args, **kwargs):
    2020    """
Back to Top