#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 | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -----------------------------------------+------------------------ 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. -- Ticket URL: <https://code.djangoproject.com/ticket/30402> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/054.4288aa3cdba3db69d1908ef1c8d98341%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.