Commit 26dc580d authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Merge branch 'fix/events-reached-participants-limit' into 'master'

Fix reached_participants_limit, filter cancelled registrations

Closes #330

See merge request !365
parents 94173f9c 4c38aa1b
......@@ -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