summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-07 14:43:28 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-07 14:43:28 +0100
commit21500e9f7cb0ba05aafa5cd1c67483785e9d0583 (patch)
tree57419f4229d6fa4b92301755a8cac6c75c01a7b6
parentcdd5e5d9372a63f87827915448cae1cc692db08a (diff)
Fix the start and end dates being the same
-rw-r--r--engagements/forms.py2
1 files changed, 1 insertions, 1 deletions
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