2 A management command which deletes expired accounts (e.g.,
3 accounts which signed up but never activated) from the database.
5 Calls ``RegistrationProfile.objects.delete_expired_users()``, which
6 contains the actual logic for determining which accounts are deleted.
10 from django.core.management.base import NoArgsCommand
11 from django.core.management.base import CommandError
13 from registration.models import RegistrationProfile
16 class Command(NoArgsCommand):
17 help = "Delete expired user registrations from the database"
19 def handle_noargs(self, **options):
20 RegistrationProfile.objects.delete_expired_users()