Verified Commit 4c38aa1b authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix reached_participants_limit, filter cancelled registrations

parent c3725c5a
......@@ -129,7 +129,8 @@ class Event(models.Model, metaclass=ModelTranslateMeta):
def reached_participants_limit(self):
return (self.max_participants is not None and
self.max_participants <= self.registration_set.count())
self.max_participants <= self.registration_set.filter(
def status(self):
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