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.
* owner: nobody => Vishal Pandey
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/33221#comment:1>
* status: assigned => closed
* resolution: => wontfix
* easy: 1 => 0
Comment:
Thanks for this proposition, however it's clearly
[https://docs.djangoproject.com/en/stable/ref/contrib/admin/#django.contrib.admin.AdminSite.each_context
documented] that `each_context()` ''"Returns a dictionary of variables to
put in the template context **for every page in the admin site**..."''. I
don't think it's worth backward compatibility concerns.
--
Ticket URL: <https://code.djangoproject.com/ticket/33221#comment:2>