Fix #1005 - location.position is a dictionary so 'value' in dict check needed
This commit is contained in:
parent
63c865790a
commit
790e1a96eb
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user