Source

cciw-website / cciw / bookings / models.py

Diff from to

cciw/bookings/models.py

                                   u"for the campers in this set of bookings.")
                     places_available = False
 
+        if self.south_wales_transport and not self.camp.south_wales_transport_available:
+            errors.append(u"Transport from South Wales is not available for this camp, or all places have been taken already.")
+
         if booking_sec and self.price_type != PRICE_CUSTOM:
             expected_amount = self.expected_amount_due()
             if self.amount_due != expected_amount:
                 errors.append(u"The 'amount due' is not the expected value of £%s." % expected_amount)
+
         return errors
 
     def get_booking_warnings(self, booking_sec=False):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.