2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-04-02 08:21:01 +01:00

Remove unused fossils incompatible with Django 5

This commit is contained in:
2023-11-23 18:17:33 +00:00
parent 480b98a704
commit 521fd20e37
3 changed files with 1 additions and 61 deletions

View File

@@ -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())