Fix #1005 - location.position is a dictionary so 'value' in dict check needed
authorJessica Tallon <jessica@megworld.co.uk>
Mon, 27 Oct 2014 09:28:56 +0000 (09:28 +0000)
committerJessica Tallon <jessica@megworld.co.uk>
Mon, 27 Oct 2014 09:28:56 +0000 (09:28 +0000)
mediagoblin/plugins/geolocation/templates/mediagoblin/plugins/geolocation/map.html

index 8da6f0ee4a0099a4565ba203c6e6759f90620d9a..87f790d1cb303cbf082d91f5596653fc2b750138 100644 (file)
@@ -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 %}