Reformatting & cleanup

This commit is contained in:
R. Miles McCain
2020-04-24 16:29:23 -04:00
parent 3a63f6f850
commit 62844db6bf
10 changed files with 55 additions and 45 deletions

View File

@@ -1,10 +1,12 @@
from django.core.management.base import BaseCommand, CommandError
import traceback
import uuid
from django.conf import settings
from django.contrib.sites.models import Site
from core.models import User
from django.core.management.base import BaseCommand, CommandError
from django.utils.crypto import get_random_string
import uuid
import traceback
from core.models import User
class Command(BaseCommand):
@@ -12,8 +14,7 @@ class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument(
"name",
type=str,
"name", type=str,
)
def handle(self, *args, **options):
@@ -24,4 +25,4 @@ class Command(BaseCommand):
self.style.SUCCESS(
f"Successfully set the whitelabel to '{options.get('name')}'"
)
)
)