mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #8500 -- Allowed overriding the default admin site instance.
This commit is contained in:
committed by
Tim Graham
parent
d0a42a14c0
commit
da3df5b878
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'
|
||||
Reference in New Issue
Block a user