From 21500e9f7cb0ba05aafa5cd1c67483785e9d0583 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 7 Oct 2024 14:43:28 +0100 Subject: Fix the start and end dates being the same --- engagements/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engagements') diff --git a/engagements/forms.py b/engagements/forms.py index 401d6a9..0fd44ea 100644 --- a/engagements/forms.py +++ b/engagements/forms.py @@ -210,7 +210,7 @@ class EngagementCreateForm(forms.ModelForm): if proposed_start_date > proposed_end_date: raise ValidationError("The proposed start date must be before the proposed end date.") - return proposed_start_date + return proposed_end_date class Meta: model = Engagement -- cgit v1.2.3