From 54502ac3ea879885a01175e5f47e2ae913715404 Mon Sep 17 00:00:00 2001 From: Dane Kennedy Date: Wed, 28 May 2025 17:21:50 +0200 Subject: [PATCH] Make title length in form consistent with title length in model. --- helpdesk/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helpdesk/forms.py b/helpdesk/forms.py index 69c1da46..a05e40a9 100644 --- a/helpdesk/forms.py +++ b/helpdesk/forms.py @@ -129,8 +129,8 @@ class EditTicketForm(CustomFieldMixin, forms.ModelForm): # Since title is max 100 characters limit it in editing if "title" in self.fields: - self.fields["title"].max_length = 100 - self.fields["title"].widget.attrs["maxlength"] = 100 + self.fields["title"].max_length = 200 + self.fields["title"].widget.attrs["maxlength"] = 200 # Disable and add help_text to the merged_to field on this form self.fields["merged_to"].disabled = True @@ -272,7 +272,7 @@ class AbstractTicketForm(CustomFieldMixin, forms.Form): ) title = forms.CharField( - max_length=100, + max_length=200, required=True, widget=forms.TextInput(attrs={"class": "form-control"}), label=_("Summary of the problem"),