Skip to content

Commit cec8061

Browse files
author
Mathieu Dupuy
committed
Appointment: check start time is only strictly before end time
1 parent 5385320 commit cec8061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appointment/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def __str__(self):
310310

311311
def clean(self):
312312
if self.start_time is not None and self.end_time is not None:
313-
if self.start_time >= self.end_time:
313+
if self.start_time > self.end_time:
314314
raise ValidationError(_("Start time must be before end time"))
315315
if self.start_time == self.end_time:
316316
raise ValidationError(_("Start time and end time cannot be the same"))

0 commit comments

Comments
 (0)