Skip to content

Commit

Permalink
Merge pull request #360 from FJNR-inc/develop
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
RignonNoel authored Jan 24, 2020
2 parents 2e74e07 + 1c1a2e9 commit ac494bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion retirement/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Meta:

@property
def reserved_seats(self):
return self.wait_queue_places.count()
return self.wait_queue_places.filter(available=True).count()

toilet_gendered = models.BooleanField(
null=True,
Expand Down Expand Up @@ -340,6 +340,7 @@ def add_user_to_wait_queue(self, user):

def get_wait_queue_place_reserved(self, user):
return self.wait_queue_places.filter(
available=True,
wait_queue_places_reserved__user=user
).order_by('create').first()

Expand Down

0 comments on commit ac494bc

Please sign in to comment.