fix: delete perm on user/group/team deletion
This is done manually using signal because we do not use a foreign key so we do not have automatically cascade deletion.
This commit is contained in:
parent
b4be56bb47
commit
b9b892417b
4 changed files with 66 additions and 1 deletions
10
permissions/apps.py
Normal file
10
permissions/apps.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PermissionsConfig(AppConfig):
|
||||
|
||||
name = 'permissions'
|
||||
verbose_name = 'Permissions'
|
||||
|
||||
def ready(self):
|
||||
import permissions.signals
|
Loading…
Add table
Add a link
Reference in a new issue