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

fix(admin): fix admin page #1088

Merged
merged 1 commit into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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