Add registry and cleanup files
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from .models import Role, PermissionHolder
|
||||
|
||||
|
||||
def cleanup():
|
||||
Role.objects.all().delete()
|
||||
@@ -0,0 +1,11 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from .cleanup import cleanup
|
||||
|
||||
|
||||
bootstrap_models = [
|
||||
{
|
||||
'name': 'role',
|
||||
},
|
||||
]
|
||||
cleanup_functions = [cleanup]
|
||||
Reference in New Issue
Block a user