Commit 8f990c1c authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'minimiseregistrations-runtimeerror' into 'master'

Fix naive datetime runtime error

See merge request !1268

(cherry picked from commit e20b7e6c)

bbfbcf80 Fix naive datetime runtime error
parent a097832c
......@@ -430,7 +430,7 @@ def execute_data_minimisation(dry_run=False):
:param dry_run: does not really remove data if True
:return: number of removed registrations
"""
deletion_period = timezone.now().date() - timezone.timedelta(days=31)
deletion_period = timezone.now() - timezone.timedelta(days=31)
objects = (Entry.objects
.filter((Q(status=Entry.STATUS_COMPLETED)
| Q(status=Entry.STATUS_REJECTED))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment