We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11a5af0 commit b1a8e52Copy full SHA for b1a8e52
1 file changed
backend/schedule/models.py
@@ -328,7 +328,7 @@ class ScheduleItem(TimeStampedModel):
328
329
@cached_property
330
def actual_attendees_total_capacity(self):
331
- if self.attendees_total_capacity:
+ if self.attendees_total_capacity is not None:
332
return self.attendees_total_capacity
333
rooms = self.rooms.all()
334
return rooms[0].attendees_total_capacity if rooms else None
0 commit comments