소스 검색

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

Scot Hacker 8 년 전
부모
커밋
be10bed28c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      bakerydemo/templates/locations/locations_index_page.html

+ 3 - 3
bakerydemo/templates/locations/locations_index_page.html

@@ -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 %}