Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix(admin): fix admin page (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras authored May 6, 2024
1 parent fd826fb commit 68377dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion timed/admin.py
Original file line number Diff line number Diff line change
@@ -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}

Expand Down

0 comments on commit 68377dd

Please sign in to comment.