Opened 6 years ago

Last modified 21 months ago

#30402 closed Bug

Django default_site admin configuration doesn't register anything — at Initial Version

Reported by: Przemek Pawlas Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top