From 68377ddb0e26e9d3cf0b21f03c974ad0ebe7cf1e Mon Sep 17 00:00:00 2001 From: Arthur D <110528300+c0rydoras@users.noreply.github.com> Date: Mon, 6 May 2024 15:00:24 +0200 Subject: [PATCH] fix(admin): fix admin page (#1088) --- 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}