format fixes

This commit is contained in:
Dane Kennedy 2025-06-02 14:48:17 +02:00
parent aab7dfa78f
commit 77b58ef241
2 changed files with 7 additions and 6 deletions

View File

@ -130,7 +130,9 @@ 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 = Ticket._meta.get_field("title").max_length
self.fields["title"].widget.attrs["maxlength"] = 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

View File

@ -4,15 +4,14 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('helpdesk', '0038_checklist_checklisttemplate_checklisttask'),
("helpdesk", "0038_checklist_checklisttemplate_checklisttask"),
]
operations = [
migrations.AlterField(
model_name='ticketchange',
name='field',
field=models.CharField(max_length=200, verbose_name='Field'),
model_name="ticketchange",
name="field",
field=models.CharField(max_length=200, verbose_name="Field"),
),
]