]> git.ozlabs.org Git - patchwork/commit
admin: Streamline admin model registration
authorDirk Wallenstein <halsmit@t-online.de>
Fri, 1 Apr 2011 07:12:15 +0000 (07:12 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 14 Apr 2011 05:05:29 +0000 (13:05 +0800)
commitc50379dda534564eb5701d8c007910bc1ee7e066
treeb2b183387fb19e27b65eec53f91956f2665c39ef
parente84c31852aae3d1c79fe3cbb1aea2ca9646197ef
admin: Streamline admin model registration

Use autodiscover and the new way to hook AdminSite into the URLconf.
AdminSite.root() will be removed in Django-1.3 as noted here:
http://docs.djangoproject.com/en/dev/internals/deprecation/

Signed-off-by: Dirk Wallenstein <halsmit@t-online.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/admin.py
apps/urls.py