mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-20 01:27:44 +02:00
format fixes
This commit is contained in:
parent
aab7dfa78f
commit
77b58ef241
@ -130,7 +130,9 @@ class EditTicketForm(CustomFieldMixin, forms.ModelForm):
|
|||||||
# Since title is max 100 characters limit it in editing
|
# Since title is max 100 characters limit it in editing
|
||||||
if "title" in self.fields:
|
if "title" in self.fields:
|
||||||
self.fields["title"].max_length = Ticket._meta.get_field("title").max_length
|
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
|
# Disable and add help_text to the merged_to field on this form
|
||||||
self.fields["merged_to"].disabled = True
|
self.fields["merged_to"].disabled = True
|
||||||
|
@ -4,15 +4,14 @@ from django.db import migrations, models
|
|||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('helpdesk', '0038_checklist_checklisttemplate_checklisttask'),
|
("helpdesk", "0038_checklist_checklisttemplate_checklisttask"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='ticketchange',
|
model_name="ticketchange",
|
||||||
name='field',
|
name="field",
|
||||||
field=models.CharField(max_length=200, verbose_name='Field'),
|
field=models.CharField(max_length=200, verbose_name="Field"),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user