agree create 3
This commit is contained in:
parent
7ac1085ae2
commit
05b97556c2
@ -28,8 +28,10 @@ def gdpr_ask_agreement(request):
|
|||||||
raise PermissionError()
|
raise PermissionError()
|
||||||
|
|
||||||
for user in User.objects.filter(
|
for user in User.objects.filter(
|
||||||
# username__in=('p207263', 'p233780', 'p253591', 'p269380'),
|
|
||||||
is_active=True).all():
|
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)
|
token = get_random_string(length=32)
|
||||||
pending = PendingGDPRAgree(user=user, token=token)
|
pending = PendingGDPRAgree(user=user, token=token)
|
||||||
pending.save()
|
pending.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user