Access the AdminSite object by its name

8 views
Skip to first unread message

Germán Larraín

unread,
Oct 7, 2013, 11:49:45 PM10/7/13
to django...@googlegroups.com
Hi.

When using multiple admin sites, it's necessary to give them (except the default one) a name to be able to reverse URL names correctly. The default admin site's name is 'admin'.

Is it possible to get the admin site object (instance of django.contrib.admin.AdminSite) by it's name?

I have some ideas to do this, but all of them are too ugly and convoluted.

Thanks
Reply all
Reply to author
Forward
0 new messages