Fix #1005 - location.position is a dictionary so 'value' in dict check needed

This commit is contained in:
Jessica Tallon 2014-10-27 09:28:56 +00:00
parent 63c865790a
commit 790e1a96eb

View File

@ -19,8 +19,8 @@
{% block geolocation_map %} {% block geolocation_map %}
{% if model.location {% if model.location
and model.get_location.position and model.get_location.position
and model.get_location.position.latitude and "latitude" in model.get_location.position
and model.get_location.position.longitude %} and "longitude" in model.get_location.position %}
<div> <div>
{%- set lon = model.get_location.position.longitude %} {%- set lon = model.get_location.position.longitude %}
{%- set lat = model.get_location.position.latitude %} {%- set lat = model.get_location.position.latitude %}