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
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed May 6, 2024
1 parent fd826fb commit 1df6542
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 1df6542

Please sign in to comment.