#30402: Django default_site admin configuration doesn't register anything
-------------------------------+--------------------------------------
     Reporter:  Destroy666x    |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  2.2
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Description changed by Destroy666x:

Old description:

> Steps:
> 1. I have project X with app Y, which has admin folder with site.py and
> multiple specific_model.py.
> 2. In site.py I extend AdminSite with SocialAuthAdminSite.
> 3. In specific_model.py files I use admin.site.register(Model,
> ModelAdmin)
> 4. In project/apps.py I extend AdminConfig with SocialAuthAdminConfig
> which has default_site = 'X.Y.admin.site.SocialAuthAdminSite'
> 5. In settings I load X.apps.SocialAuthAdminConfig
>
> Expected:
> Admin classes for models should be registered like they were before I
> made edits to use default_site (before I just assigned the site to a
> variable and used that).
>
> Actual:
> Admin classes for models are not registered. The customized admin works
> otherwise though.

New description:

 Steps:
 1. I have project X with app Y, which has admin folder with site.py and
 multiple specific_model.py.
 2. In site.py I extend AdminSite with SocialAuthAdminSite.
 3. In specific_model.py files I use admin.site.register(Model, ModelAdmin)
 4. In project/apps.py I extend AdminConfig with SocialAuthAdminConfig
 which has default_site = 'X.Y.admin.site.SocialAuthAdminSite'
 5. In settings I load X.apps.SocialAuthAdminConfig (tried at the
 beginnning, end, etc. - I don't think it matters)

 Expected:
 Admin classes for models should be registered like they were before I made
 edits to use default_site (before I just assigned the site to a variable
 and used that).

 Actual:
 Admin classes for models are not registered. The customized admin works
 otherwise though.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30402#comment:1>
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/069.b923aaee2d2f8c1616723df9f0722f4e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to