Files
mayan-edms/mayan/apps/autoadmin/management/commands/createautoadmin.py
2019-04-13 23:54:08 -04:00

13 lines
338 B
Python

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()