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-14 14:35:17 +0100
commit0997a9fea6ba97e5377fb3b950991e7b4135ff58 (patch)
tree57419f4229d6fa4b92301755a8cac6c75c01a7b6
parent8c6c9a215ac68b19c91fa3ba81ae52199ffdb037 (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