From 2ec9f01f00e35c5171d12f79e6acf798853a47b7 Mon Sep 17 00:00:00 2001 From: Sam Splunks <72095718+samsplunks@users.noreply.github.com> Date: Fri, 26 Jul 2024 11:12:10 +0000 Subject: [PATCH] Cleaned EditTicketCustomFieldForm --- helpdesk/forms.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/helpdesk/forms.py b/helpdesk/forms.py index 0ce76c08..b2fbdb25 100644 --- a/helpdesk/forms.py +++ b/helpdesk/forms.py @@ -198,7 +198,6 @@ class EditTicketCustomFieldForm(EditTicketForm): if field != 'id' and field.replace("custom_", "", 1) not in HELPDESK_SHOW_CUSTOM_FIELDS_FOLLOW_UP_LIST: self.fields.pop(field, None) - def save(self, *args, **kwargs): # if form is saved in a ticket update, it is passed @@ -217,13 +216,9 @@ class EditTicketCustomFieldForm(EditTicketForm): super(EditTicketCustomFieldForm, self).save(*args, **kwargs) - class Meta: model = Ticket - exclude = ('title', 'queue', 'created', 'modified', - 'submitter_email', 'assigned_to', 'status', - 'on_hold', 'description', 'resolution', 'priority', - 'due_date', 'last_escalation', 'secret_key', 'kbitem') + fields = ('id', 'merged_to',) class EditFollowUpForm(forms.ModelForm):