agree create 3

This commit is contained in:
H.T. Kruitbosch 2018-05-04 17:34:20 +02:00
parent 7ac1085ae2
commit 05b97556c2
1 changed files with 3 additions and 1 deletions

View File

@ -28,8 +28,10 @@ def gdpr_ask_agreement(request):
raise PermissionError()
for user in User.objects.filter(
# username__in=('p207263', 'p233780', 'p253591', 'p269380'),
is_active=True).all():
if PendingGDPRAgree(user=user).exists() or GDPRAgreed(user=user).exists() or user.email is None \
or user.email == '':
continue
token = get_random_string(length=32)
pending = PendingGDPRAgree(user=user, token=token)
pending.save()