#33221: AdminSite each_context collected app_list always, for every user and
view
-------------------------------------+-------------------------------------
Reporter: Maxim | Owner: nobody
Danilov |
Type: | Status: new
Cleanup/optimization |
Component: | Version: 3.2
contrib.admin |
Severity: Normal | Keywords: admin, AdminSite
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
AdminSite each_context collected app_list always.
It means it works for all user, dont matter is anonymous or not. But it
should work only for internal admin pages.
This views probably should not to call each_context or collect app_list
ewery time:
autocomplete/
jsi18n/
login/
logout/
I dont know about "view_on_site" view.
Right now i put something like this:
{{{
def get_app_list(self, request):
return super(AdminSite, self).get_app_list(request) if
request.user.is_authenticated else []
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33221>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.cc0fcdf5a8a694557119bcd8f52a37b7%40djangoproject.com.