#8500: Allow overriding of default adminsite.
------------------------------------+------------------------------------
     Reporter:  oyvind              |                    Owner:  oyvind
         Type:  New feature         |                   Status:  new
    Component:  contrib.admin       |                  Version:  master
     Severity:  Normal              |               Resolution:
     Keywords:  override adminsite  |             Triage Stage:  Accepted
    Has patch:  1                   |      Needs documentation:  0
  Needs tests:  0                   |  Patch needs improvement:  1
Easy pickings:  0                   |                    UI/UX:  0
------------------------------------+------------------------------------

Comment (by Raffaele Salmaso):

 Hi, I usually override the default admin site with my custom version, then
 found this ticket, so I choose to complete it.

 The first PR was using a new setting (`ADMIN_SITE_CLASS`), but I rewrote
 it to use a custom (`Simple`)`AdminConfig` and no new setting.

 This version doesn't require to adapt current code with a
 {{{
 def register(site):
     ...
 }}}
 as the last patch require, or rewriting code not to use
 `django.contrib.admin.sites.site` directly.

--
Ticket URL: <https://code.djangoproject.com/ticket/8500#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.0b14e87554576589e96810091decc738%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to