Verified Commit 338e2b5d authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix setting all users not on waiting list or cancelled to present and paid

parent 280153a4
......@@ -344,6 +344,7 @@ def all_present(request, event_id):
.filter(date_cancelled=None)
.order_by('date')[:event.max_participants])
registrations_query.update(present=True, paid=True)
event.registration_set.filter(pk__in=registrations_query).update(
present=True, paid=True)
return HttpResponseRedirect('/events/admin/{}'.format(event_id))
Supports Markdown
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