Hello,
i was thinking on export the app_list on every view in the admin to implement a
left menu like the one in mezzanine (demo /demo):
http://mezzanine.jupo.org/it/admin/shop/productoption/
I've started looking in django.contrib.admin.sites and found a couple of issues,
first at line 469, if app_label == model._meta.app_label is true,
shouldn't we add a break after we found an app_label? AFAIU with the django 1.7
app registry rework the label is unique between applications we don't need to do
more work once we have found one
Then there's obviously some duplication between index and app_index methods,
would it make sense to add an helper method with an optional parameter to filter
for the app_label?
Finally it looks to me that everything in the app_dict but the permissions could
be cached somehow. Would it make sense to cache the app_dict so it would be
cheaper to add the app_list in the other views?
thanks in advance
--
Riccardo Magliocchetti
@rmistaken
http://menodizero.it