summaryrefslogtreecommitdiffstats
path: root/registration/management/commands/cleanupregistration.py
diff options
context:
space:
mode:
authorWookey <wookey@wookware.org>2015-06-10 23:52:49 +0100
committerWookey <wookey@wookware.org>2015-06-10 23:52:49 +0100
commitcad8001bd04861ebbcfee6ccf5947cd90afac5ac (patch)
tree287a6f9abd6fe992593f3094326e73d222ace451 /registration/management/commands/cleanupregistration.py
parentd1ffa6fa1fd8e5c9c04cd1ea16fa91159244f2b2 (diff)
downloadtroggle-cad8001bd04861ebbcfee6ccf5947cd90afac5ac.tar.gz
troggle-cad8001bd04861ebbcfee6ccf5947cd90afac5ac.tar.bz2
troggle-cad8001bd04861ebbcfee6ccf5947cd90afac5ac.zip
Use django-registration, not a local copy.
This old one is uses deprecated hashcompat.
Diffstat (limited to 'registration/management/commands/cleanupregistration.py')
-rw-r--r--registration/management/commands/cleanupregistration.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/registration/management/commands/cleanupregistration.py b/registration/management/commands/cleanupregistration.py
deleted file mode 100644
index abec5ae..0000000
--- a/registration/management/commands/cleanupregistration.py
+++ /dev/null
@@ -1,19 +0,0 @@
-"""
-A management command which deletes expired accounts (e.g.,
-accounts which signed up but never activated) from the database.
-
-Calls ``RegistrationProfile.objects.delete_expired_users()``, which
-contains the actual logic for determining which accounts are deleted.
-
-"""
-
-from django.core.management.base import NoArgsCommand
-
-from registration.models import RegistrationProfile
-
-
-class Command(NoArgsCommand):
- help = "Delete expired user registrations from the database"
-
- def handle_noargs(self, **options):
- RegistrationProfile.objects.delete_expired_users()