Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
end date can't be equal to start_date
Browse files Browse the repository at this point in the history
  • Loading branch information
camsom committed Jan 21, 2016
1 parent a213e60 commit 8fef6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bulbs/special_coverage/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def clean_publish_dates(self):
if self.end_date:
if not self.start_date:
raise ValidationError("""The End Date requires a Start Date value.""")
elif self.end_date < self.start_date:
elif self.end_date <= self.start_date:
raise ValidationError("""The End Date must not precede the Start Date.""")
if self.start_date and not self.end_date:
raise ValidationError("""The Start Date requires an End Date.""")
Expand Down

0 comments on commit 8fef6ad

Please sign in to comment.