Fix area list template bug
authorDavid Kerkeslager <kerkeslager@gmail.com>
Sat, 27 Feb 2021 04:12:11 +0000 (23:12 -0500)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Sat, 27 Feb 2021 04:12:11 +0000 (23:12 -0500)
setup.py
tickle/templates/tickle/area_list.html

index be8e5c6..b4d47a2 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
 import pathlib
 from setuptools import setup, find_packages
 HERE = pathlib.Path(__file__).parent
-VERSION = '0.0.8'
+VERSION = '0.0.9'
 PACKAGE_NAME = 'django_predrill_tickle'
 AUTHOR = 'David Kerkeslager'
 AUTHOR_EMAIL = 'david@kerkeslager.com'
index 3dd870b..ddf0770 100644 (file)
@@ -14,7 +14,7 @@
         {% if area.children.count > 0 %}
           <ul>
             {% for child in area.children.all %}
-              <li><a href='{% url "tickle:area-detail" pk=area.pk %}'>{{ area.name }}</a></li>
+              <li><a href='{% url "tickle:area-detail" pk=child.pk %}'>{{ child.name }}</a></li>
             {% endfor %}
           </ul>
         {% endif %}