0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

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
This commit is contained in:
Justin Bronn 2008-08-23 07:06:30 +00:00
parent 58c579b005
commit a0e87b771b

View File

@ -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 %}