Just curious, why is admin.site.register([Model], [ModelAdmin]) not done within ModelAdmin?

31 views
Skip to first unread message

Joshua Russo

unread,
Sep 11, 2011, 2:56:48 PM9/11/11
to django-d...@googlegroups.com
I've wondered this for a while, but is there a reason why the call to admin.site.register(([Model], [ModelAdmin]) is not done within the init of ModelAdmin?

Jeremy Dunck

unread,
Sep 11, 2011, 3:02:09 PM9/11/11
to django-d...@googlegroups.com

You can run multiple AdminSite instances mounted at different URLs.
admin.site is just a default instance of AdminSite for ease of use.

Joshua Russo

unread,
Sep 11, 2011, 3:09:49 PM9/11/11
to django-d...@googlegroups.com
gotcha, thanks
Reply all
Reply to author
Forward
0 new messages