aboutsummaryrefslogtreecommitdiffstats
path: root/pysite
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-05-02 13:44:33 +0100
committerGravatar Gareth Coles <[email protected]>2018-05-02 13:44:33 +0100
commit4062b111c771225a7185af700722490a0da9067b (patch)
tree8b2a05d1374857bb1bdf28f6958924cfecec282b /pysite
parent[All Pages] Account for pages without a title when sorting (diff)
[All Pages] Fix the other half of that dumb
Diffstat (limited to 'pysite')
-rw-r--r--pysite/views/wiki/special/all_pages.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pysite/views/wiki/special/all_pages.py b/pysite/views/wiki/special/all_pages.py
index 1305fc29..d2e02a72 100644
--- a/pysite/views/wiki/special/all_pages.py
+++ b/pysite/views/wiki/special/all_pages.py
@@ -14,6 +14,9 @@ class PageView(RouteView, DBMixin):
letters = {}
for page in pages:
+ if "title" not in page:
+ page["title"] = "No Title"
+
letter = page["title"][0].upper()
if letter not in letters: