mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-18 11:49:56 +02:00
format fixes
This commit is contained in:
@@ -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
|
||||
|
@@ -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"),
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user