Compare commits
1 Commits
master
...
pojmenovan
Author | SHA1 | Date |
---|---|---|
Pavel "LEdoian" Turinsky | bee0083dac | 6 months ago |
3 changed files with 39 additions and 30 deletions
@ -0,0 +1,12 @@ |
|||
from django.contrib.admin import apps |
|||
# Nemůžeme importovat rovnou AdminConfig, jinak se autodetekuje˙:-/ |
|||
# https://code.djangoproject.com/ticket/32642 |
|||
|
|||
# Ref: https://docs.djangoproject.com/en/4.2/ref/contrib/admin/#overriding-default-admin-site |
|||
# Pozn: nad tím je „Customizing the AdminSite class“, ale ta nepřepisuje |
|||
# default, takže bychom museli přepsat všechny registrace do admina. Proto |
|||
# radši overridujeme i AdminConfig |
|||
class MamwebAdminConfig(apps.AdminConfig): |
|||
default_site = 'mamweb.admin.MamwebAdminSite' |
|||
|
|||
|
Loading…
Reference in new issue