@@ -0,0 +1,414 @@
+from django.core.management.base import BaseCommand, CommandError%0Afrom django.conf import settings%0A%0Afrom django_auth_policy.models import LoginAttempt%0A%0A%0Aclass Command(BaseCommand):%0A    help = %22Remove all locks on usernames and IP addresses%22%0A%0A    def handle(self, *args, **options):%0A        c = LoginAttempt.objects.filter(lockout=True).update(lockout=False)%0A        print u'Unlocked %7B0%7D login attempts.'.format(c)%0A

Add management command which unlocks all lockout commands