diff --git a/helpdesk/forms.py b/helpdesk/forms.py index a05e40a9..5523aec9 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 = 200 - self.fields["title"].widget.attrs["maxlength"] = 200 + self.fields["title"].max_length = Ticket._meta.get_field("title").max_length + self.fields["title"].widget.attrs["maxlength"] = Ticket._meta.get_field("title").max_length # Disable and add help_text to the merged_to field on this form self.fields["merged_to"].disabled = True