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:
parent
58c579b005
commit
a0e87b771b
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue