Commits

Luke Plant committed 77a34ef

Renamed method for clarity

Comments (0)

Files changed (2)

cciw/bookings/models.py

                           % (self.camp.maximum_age, self.camp.year))
 
         # Check place availability
-        places_left = self.camp.get_places_available()
-        places_left_male = self.camp.get_places_available(sex=SEX_MALE)
-        places_left_female = self.camp.get_places_available(sex=SEX_FEMALE)
+        places_left = self.camp.get_places_left()
+        places_left_male = self.camp.get_places_left(sex=SEX_MALE)
+        places_left_female = self.camp.get_places_left(sex=SEX_FEMALE)
 
         # We only want one message about places not being available, and the
         # order here is important - if there are no places full stop, we don't

cciw/cciwmain/models.py

     def age(self):
         return "%d-%d" % (self.minimum_age, self.maximum_age)
 
-    def get_places_available(self, sex=None):
+    def get_places_left(self, sex=None):
         from cciw.bookings.models import SEX_MALE, SEX_FEMALE
         qs = self.bookings.booked()
         if sex is not None: