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:
parent
2eb2c90b1f
commit
e3d1761d45
14 changed files with 345 additions and 45 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue