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.
This commit is contained in:
Kumi 2024-11-16 20:10:36 +01:00
parent d8d791e8c9
commit 044f18b822
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -32,6 +32,7 @@ class RegistrationForm(forms.Form):
) )
) )
registration_reason = forms.CharField( registration_reason = forms.CharField(
min_length=30,
widget=forms.Textarea( widget=forms.Textarea(
attrs={ attrs={
"class": "textarea", "class": "textarea",