We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5385320 commit cec8061Copy full SHA for cec8061
appointment/models.py
@@ -310,7 +310,7 @@ def __str__(self):
310
311
def clean(self):
312
if self.start_time is not None and self.end_time is not None:
313
- if self.start_time >= self.end_time:
+ if self.start_time > self.end_time:
314
raise ValidationError(_("Start time must be before end time"))
315
if self.start_time == self.end_time:
316
raise ValidationError(_("Start time and end time cannot be the same"))
0 commit comments