fix: management command runner expects classes named "Command"

master
Aravinth Manivannan 1 year ago
parent a197422f6a
commit 89a79f45ff
Signed by untrusted user: realaravinth
GPG Key ID: AD9F0F08E855ED88

@ -19,7 +19,7 @@ from django.conf import settings
from accounts.models import AccountConfirmChallenge
class CleanUnverifiedUsersCommand(BaseCommand):
class Command(BaseCommand):
help = "Deletes unverified users after the period specified in settings.py"
def handle(self, *args, **options):

@ -23,7 +23,9 @@ from django.contrib.auth import authenticate
from django.conf import settings
from .models import AccountConfirmChallenge
from .management.commands.rm_unverified_users import CleanUnverifiedUsersCommand
from .management.commands.rm_unverified_users import (
Command as CleanUnverifiedUsersCommand,
)
class LoginTest(TestCase):

Loading…
Cancel
Save