mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-18 04:31:46 +01:00
Cleaned EditTicketCustomFieldForm
This commit is contained in:
parent
6a9703fba2
commit
2ec9f01f00
@ -198,7 +198,6 @@ class EditTicketCustomFieldForm(EditTicketForm):
|
|||||||
if field != 'id' and field.replace("custom_", "", 1) not in HELPDESK_SHOW_CUSTOM_FIELDS_FOLLOW_UP_LIST:
|
if field != 'id' and field.replace("custom_", "", 1) not in HELPDESK_SHOW_CUSTOM_FIELDS_FOLLOW_UP_LIST:
|
||||||
self.fields.pop(field, None)
|
self.fields.pop(field, None)
|
||||||
|
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
|
|
||||||
# if form is saved in a ticket update, it is passed
|
# if form is saved in a ticket update, it is passed
|
||||||
@ -217,13 +216,9 @@ class EditTicketCustomFieldForm(EditTicketForm):
|
|||||||
|
|
||||||
super(EditTicketCustomFieldForm, self).save(*args, **kwargs)
|
super(EditTicketCustomFieldForm, self).save(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Ticket
|
model = Ticket
|
||||||
exclude = ('title', 'queue', 'created', 'modified',
|
fields = ('id', 'merged_to',)
|
||||||
'submitter_email', 'assigned_to', 'status',
|
|
||||||
'on_hold', 'description', 'resolution', 'priority',
|
|
||||||
'due_date', 'last_escalation', 'secret_key', 'kbitem')
|
|
||||||
|
|
||||||
|
|
||||||
class EditFollowUpForm(forms.ModelForm):
|
class EditFollowUpForm(forms.ModelForm):
|
||||||
|
Loading…
Reference in New Issue
Block a user