From 790e1a96ebff0bbb1272769dff3a9dcadcf88dd3 Mon Sep 17 00:00:00 2001 From: Jessica Tallon Date: Mon, 27 Oct 2014 09:28:56 +0000 Subject: [PATCH] Fix #1005 - location.position is a dictionary so 'value' in dict check needed --- .../templates/mediagoblin/plugins/geolocation/map.html | 4 ++-- 1 file 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 %}
{%- set lon = model.get_location.position.longitude %} {%- set lat = model.get_location.position.latitude %} -- 2.25.1