Change locationUrl to snake casing
This commit is contained in:
parent
278306daa4
commit
32ae0aa5f3
@ -51,7 +51,7 @@
|
||||
<p>Location</p>
|
||||
<p class="label">
|
||||
{% if session.latitude %}
|
||||
<a href="{{session|locationUrl}}" target="_blank">Open
|
||||
<a href="{{session|location_url}}" target="_blank">Open
|
||||
in Maps ↗</a>
|
||||
{% else %}
|
||||
Unknown
|
||||
|
@ -186,5 +186,5 @@ def urldisplay(url):
|
||||
return url
|
||||
|
||||
@register.filter
|
||||
def locationUrl(session):
|
||||
def location_url(session):
|
||||
return settings.LOCATION_URL.replace("$LATITUDE$", str(session.latitude)).replace("$LONGITUDE$", str(session.longitude))
|
Loading…
Reference in New Issue
Block a user