summaryrefslogtreecommitdiffstats
path: root/core/views/other.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-11-23 18:17:33 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-11-23 18:17:33 +0000
commit521fd20e37de00179cfe92a5458a9baf80129c6a (patch)
treeaa7bb8e8c7db1415b3a426e237dd9867ee5fd000 /core/views/other.py
parent480b98a704041bdfd00f79d393f90294ff594f2c (diff)
downloadtroggle-521fd20e37de00179cfe92a5458a9baf80129c6a.tar.gz
troggle-521fd20e37de00179cfe92a5458a9baf80129c6a.tar.bz2
troggle-521fd20e37de00179cfe92a5458a9baf80129c6a.zip
Remove unused fossils incompatible with Django 5
Diffstat (limited to 'core/views/other.py')
-rw-r--r--core/views/other.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/views/other.py b/core/views/other.py
index b3cbaf3..200b57b 100644
--- a/core/views/other.py
+++ b/core/views/other.py
@@ -92,17 +92,13 @@ def troggle404(request): # cannot get this to work. Handler404 in urls.py not r
def frontpage(request):
"""never seen in common practice. Logon should redirect here when this is more useful"""
- # the messages system does a popup on this page if there is a recent message, e.g. from the admin site actions.
- # via django.contrib.messages.middleware.MessageMiddleware
- # this is set in the templates.
+
if request.user.is_authenticated:
- from django.contrib.admin.templatetags import log
return render(request, "tasks.html")
expeditions = Expedition.objects.order_by("-year")
logbookentry = LogbookEntry
cave = Cave
- from django.contrib.admin.templatetags import log
return render(request, "frontpage.html", locals())