diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-09-10 15:42:36 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-09-10 15:42:36 +0300 |
commit | ab79a43afa3b86181c3eaf7c327d54a78c18a8f4 (patch) | |
tree | d4a28808ec1d59c4aacadbdba1877194b673db58 /core/views/caves.py | |
parent | ad272fab3b313605f1c9e747a11a1b0d0d5a5473 (diff) | |
download | troggle-ab79a43afa3b86181c3eaf7c327d54a78c18a8f4.tar.gz troggle-ab79a43afa3b86181c3eaf7c327d54a78c18a8f4.tar.bz2 troggle-ab79a43afa3b86181c3eaf7c327d54a78c18a8f4.zip |
Removed class Area, use Cave.areacode Cave.subarea
Diffstat (limited to 'core/views/caves.py')
-rw-r--r-- | core/views/caves.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/views/caves.py b/core/views/caves.py index a002a0e..250ae0e 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -124,10 +124,10 @@ def getnotablecaves(): def caveindex(request): - #Cave.objects.all() - caves1623 = list(Cave.objects.filter(area__short_name="1623")) - caves1626 = list(Cave.objects.filter(area__short_name="1626")) - caves1627 = list(Cave.objects.filter(area__short_name="1627")) + + caves1623 = list(Cave.objects.filter(areacode="1623")) + caves1626 = list(Cave.objects.filter(areacode="1626")) + caves1627 = list(Cave.objects.filter(areacode="1627")) caves1623.sort(key=caveKey) caves1626.sort(key=caveKey) caves1627.sort(key=caveKey) |