Now booking is only for users with memberships. Added method to know if a membership is active or not. Added new formula for booking pricing. handling border cases when an user want to book. Added booking order detail view. Added booking order detail html.

This commit is contained in:
Levi 2016-09-05 19:45:45 -05:00
commit e3d1761d45
14 changed files with 345 additions and 45 deletions

View file

@ -68,7 +68,7 @@ class BookingDateForm(forms.Form):
except ValueError:
raise forms.ValidationError("Submit valid dates.")
if start_date >= end_date:
if start_date > end_date:
raise forms.ValidationError("Your end date must be greather than your start date.")
return start_date, end_date