|
@@ -10,6 +10,4 @@ class Command(BaseCommand):
|
|
|
def handle(self, *args, **kwargs):
|
|
|
|
|
|
users = User.objects.filter(created__lt=timezone.now()-timedelta(hours=settings.ABUSE_BY_REMOTE_IP_PERIOD_HRS))
|
|
|
- for u in users:
|
|
|
- u.registration_remote_ip = ''
|
|
|
- u.save() # TODO bulk update?
|
|
|
+ users.update(registration_remote_ip='')
|