Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #8465. Mark KML input as safe so elements aren't escaped; added…

… some defaults for name and description.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a0e87b771bc0ee1b1f307099e605ee415f1c9dbd 1 parent 58c579b
@jbronn jbronn authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/gis/templates/gis/kml/placemarks.kml
View
6 django/contrib/gis/templates/gis/kml/placemarks.kml
@@ -1,8 +1,8 @@
{% extends "gis/kml/base.kml" %}
{% block placemarks %}{% for place in places %}
<Placemark>
- <name>{{ place.name|escape }}</name>
- <description>{{ place.description|escape }}</description>
- {{ place.kml }}
+ <name>{% if place.name %}{{ place.name }}{% else %}{{ place }}{% endif %}</name>
+ <description>{% if place.description %}{{ place.description }}{% else %}{{ place }}{% endif %}</description>
+ {{ place.kml|safe }}
</Placemark>{% endfor %}{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.