From 044f18b822a3f9703ebe016e9baab2eba6605c32 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 16 Nov 2024 20:10:36 +0100 Subject: [PATCH] feat: Enforces minimum length for registration reason Adds a minimum length requirement of 30 characters to the registration reason field to ensure more detailed responses. --- src/synapse_registration/registration/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/synapse_registration/registration/forms.py b/src/synapse_registration/registration/forms.py index 8f3890c..a35460d 100644 --- a/src/synapse_registration/registration/forms.py +++ b/src/synapse_registration/registration/forms.py @@ -32,6 +32,7 @@ class RegistrationForm(forms.Form): ) ) registration_reason = forms.CharField( + min_length=30, widget=forms.Textarea( attrs={ "class": "textarea",