Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Justin Bronn authored August 23, 2008
6  django/contrib/gis/templates/gis/kml/placemarks.kml
... ...
@@ -1,8 +1,8 @@
1 1
 {% extends "gis/kml/base.kml" %}
2 2
 {% block placemarks %}{% for place in places %}
3 3
   <Placemark>
4  
-    <name>{{ place.name|escape }}</name>
5  
-    <description>{{ place.description|escape }}</description>
6  
-    {{ place.kml }}
  4
+    <name>{% if place.name %}{{ place.name }}{% else %}{{ place }}{% endif %}</name>
  5
+    <description>{% if place.description %}{{ place.description }}{% else %}{{ place }}{% endif %}</description>
  6
+    {{ place.kml|safe }}
7 7
   </Placemark>{% endfor %}{% endblock %}
8 8
 

0 notes on commit a0e87b7

Please sign in to comment.
Something went wrong with that request. Please try again.