aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Tallon <jessica@megworld.co.uk>2014-10-27 09:28:56 +0000
committerJessica Tallon <jessica@megworld.co.uk>2014-10-27 09:28:56 +0000
commit790e1a96ebff0bbb1272769dff3a9dcadcf88dd3 (patch)
treed948eeb21e3727012778eb39965425ab8580b8d0
parent63c865790a6e9932a7b8d5953fc57536db0e20f4 (diff)
downloadmediagoblin-790e1a96ebff0bbb1272769dff3a9dcadcf88dd3.tar.lz
mediagoblin-790e1a96ebff0bbb1272769dff3a9dcadcf88dd3.tar.xz
mediagoblin-790e1a96ebff0bbb1272769dff3a9dcadcf88dd3.zip
Fix #1005 - location.position is a dictionary so 'value' in dict check needed
-rw-r--r--mediagoblin/plugins/geolocation/templates/mediagoblin/plugins/geolocation/map.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/plugins/geolocation/templates/mediagoblin/plugins/geolocation/map.html b/mediagoblin/plugins/geolocation/templates/mediagoblin/plugins/geolocation/map.html
index 8da6f0ee..87f790d1 100644
--- a/mediagoblin/plugins/geolocation/templates/mediagoblin/plugins/geolocation/map.html
+++ b/mediagoblin/plugins/geolocation/templates/mediagoblin/plugins/geolocation/map.html
@@ -19,8 +19,8 @@
{% block geolocation_map %}
{% if model.location
and model.get_location.position
- and model.get_location.position.latitude
- and model.get_location.position.longitude %}
+ and "latitude" in model.get_location.position
+ and "longitude" in model.get_location.position %}
<div>
{%- set lon = model.get_location.position.longitude %}
{%- set lat = model.get_location.position.latitude %}