mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #8500 -- Allowed overriding the default admin site instance.
This commit is contained in:
parent
d0a42a14c0
commit
da3df5b878
9 changed files with 108 additions and 2 deletions
6
tests/admin_default_site/apps.py
Normal file
6
tests/admin_default_site/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.contrib.admin.apps import SimpleAdminConfig
|
||||
|
||||
|
||||
class MyCustomAdminConfig(SimpleAdminConfig):
|
||||
verbose_name = 'My custom default admin site.'
|
||||
default_site = 'admin_default_site.sites.CustomAdminSite'
|
Loading…
Add table
Add a link
Reference in a new issue