Integrate django-autoadmin into the core apps
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from ...models import AutoAdminSingleton
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Used to create a superuser with a secure and automatic password.'
|
||||
|
||||
def handle(self, *args, **options):
|
||||
AutoAdminSingleton.objects.create_autoadmin()
|
||||
Reference in New Issue
Block a user