mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-19 17:18:23 +02:00
Get length from model
This commit is contained in:
parent
606c3a3ee5
commit
193ae98e82
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user