why not
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
parent
1cff8902dd
commit
cd92eced13
|
@ -27,7 +27,10 @@ class AuthentikTenantsConfig(ManagedAppConfig):
|
||||||
verbose_name = "authentik Tenants"
|
verbose_name = "authentik Tenants"
|
||||||
default = True
|
default = True
|
||||||
|
|
||||||
|
def ready(self):
|
||||||
|
post_migrate.connect(reconcile_default_tenant)
|
||||||
|
super().ready()
|
||||||
|
|
||||||
def reconcile_default_tenant(self):
|
def reconcile_default_tenant(self):
|
||||||
"""Make sure default tenant exists, especially after a migration"""
|
"""Make sure default tenant exists, especially after a migration"""
|
||||||
reconcile_default_tenant()
|
reconcile_default_tenant()
|
||||||
post_migrate.connect(reconcile_default_tenant)
|
|
||||||
|
|
Reference in New Issue