Use `pageurl` in locations index, rather than simple slug

pull/20/merge
Scot Hacker 2017-02-11 23:47:16 +00:00
rodzic 8fb66fc8fc
commit be10bed28c
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% load wagtailimages_tags %}
{% load wagtailcore_tags %}
{% block content-header %}
{{ page.title }}
@ -7,6 +7,6 @@
{% block content-body %}
{% for location in locations %}
<div><a href="{{ location.slug }}">{{ location.title }}</a></div>
<div><a href="{% pageurl location %}">{{ location.title }}</a></div>
{% endfor %}
{% endblock content-body %}
{% endblock content-body %}