django-modeladmin-reorder
django-modeladmin-reorder copied to clipboard
Allow custom admin site
Sometimes we do insane things with the admin, which require custom admin site. This PR includes a simple fix that enables developer to specify which admin site should be used instead of the default django.contrib.admin.site.
Usage:
in settings.py:
ADMIN_REORDER_SITE = 'myapp.custom_admin.site'
That's it. Of course, if setting is missing, the default site will be used.
Idea for the future: enable reorder to work on multiple sites.
Coverage decreased (-0.07%) to 0.971% when pulling c6da2877a61eddd689dc0da281a9a813aebc77ee on frnhr:allow_custom_admin_site into 6de6a7293e68efa7bddbe52f58eb3333843c4243 on mishbahr:master.
Hey @frnhr, I'm on holiday at the moment .. I'll look into this as soon as I'm back.
Has there been any progress on this or #20 ? I was hoping to use this with two different admin sites in a single Django project.