Opened 9 years ago

Closed 9 years ago

#25242 closed Bug (invalid)

Admin not redirecting to login for custom AdminSite

Reported by: shadow Owned by: nobody
Component: contrib.admin Version: dev
Severity: Release blocker Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

My django project has stopped redirecting me to the admin login when I am not logged in, since moving from 1.8 to master.

Instead I see: "You don't have permission to edit anything.". However, manually going to the login URL allows a successful login.

I am using a custom AdminSite.

I think it is probably related to this commit:

https://github.com/django/django/commit/be0ad62994a340ad54a0b328771931932a45a899

Change History (2)

comment:1 by Tim Graham, 9 years ago

Easy pickings: unset

Can you show your custom admin site class?

comment:2 by shadow, 9 years ago

Resolution: invalid
Status: newclosed

Sorry, just realised this was my fault.

I forgot that I had previously extended the admin's index view, but forgot to wrap the original view in admin_view() when calling it.

I guess I was logged-in the whole time and never noticed...

Note: See TracTickets for help on using tickets.
Back to Top