Resolve "Fix participants count" #232
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "99-fix-participants-count"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #99
assigned to @nik
added 1 commit
Compare with previous version
This is inefficient because it makes another database query when evaluating the template. The
participants_personsfield should be added as an annotation in the original object passed to the template.Doesn't this change also require changes to the registration process?
(can be done with PrefetchRelated with a query or a filtered relation, I think)
Oh, several additional queries, actually.
Why? I tested registration to an event with
max_participants= 7 and a linked group that had 7 members, of which 6 had the participant role and one had another role. Registration was successful. And after this registration, the event was displayed as not available, because then it had 7/7 participants.changed this line in version 2 of the diff
added 1 commit
9f302f10- Fix participants countCompare with previous version
resolved all threads
mentioned in commit
870015c159