gdpr send to all
This commit is contained in:
parent
c86b41c48a
commit
9b652fa935
@ -1 +1 @@
|
|||||||
__version__ = '0.1.29'
|
__version__ = '0.1.30'
|
@ -21,7 +21,7 @@ def gdpr_ask_agreement(request):
|
|||||||
if not request.user.is_superuser:
|
if not request.user.is_superuser:
|
||||||
raise PermissionError()
|
raise PermissionError()
|
||||||
|
|
||||||
for user in User.objects.filter(username='herbert').all():
|
for user in User.objects.filter(is_active=True).all():
|
||||||
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