Commit d1edc0b8 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'fix/all-present-registrations' into 'master'

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

Closes #374

See merge request !429
parents 0caae2a4 338e2b5d
......@@ -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