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" %}
|
{% extends "gis/kml/base.kml" %}
|
||||||
{% block placemarks %}{% for place in places %}
|
{% block placemarks %}{% for place in places %}
|
||||||
<Placemark>
|
<Placemark>
|
||||||
<name>{{ place.name|escape }}</name>
|
<name>{% if place.name %}{{ place.name }}{% else %}{{ place }}{% endif %}</name>
|
||||||
<description>{{ place.description|escape }}</description>
|
<description>{% if place.description %}{{ place.description }}{% else %}{{ place }}{% endif %}</description>
|
||||||
{{ place.kml }}
|
{{ place.kml|safe }}
|
||||||
</Placemark>{% endfor %}{% endblock %}
|
</Placemark>{% endfor %}{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue