django-modeladmin-reorder icon indicating copy to clipboard operation
django-modeladmin-reorder copied to clipboard

Allow custom admin site

Open frnhr opened this issue 9 years ago • 3 comments

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.

frnhr avatar Apr 02 '16 00:04 frnhr

Coverage Status

Coverage decreased (-0.07%) to 0.971% when pulling c6da2877a61eddd689dc0da281a9a813aebc77ee on frnhr:allow_custom_admin_site into 6de6a7293e68efa7bddbe52f58eb3333843c4243 on mishbahr:master.

coveralls avatar Apr 02 '16 00:04 coveralls

Hey @frnhr, I'm on holiday at the moment .. I'll look into this as soon as I'm back.

mishbahr avatar Apr 06 '16 08:04 mishbahr

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.

geoffrey-eisenbarth avatar Sep 23 '18 17:09 geoffrey-eisenbarth