From 1df654235f8a3875c2f6f88cda1abcd728655289 Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Mon, 6 May 2024 14:50:10 +0200 Subject: [PATCH] fix(admin): fix admin page --- timed/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/timed/admin.py b/timed/admin.py index 0fedc4fc..83f689e7 100644 --- a/timed/admin.py +++ b/timed/admin.py @@ -1,12 +1,13 @@ from django.conf import settings from django.contrib.admin import AdminSite +from django.utils.decorators import method_decorator from django.views.decorators.cache import never_cache class TimedAdminSite(AdminSite): login_template = "login.html" - @never_cache + @method_decorator(never_cache) def login(self, request, extra_context=None): extra = {"show_local_login": settings.ALLOW_LOCAL_LOGIN}