From 665e4008e7c72b204c5206d64a5a96c6c3b2e962 Mon Sep 17 00:00:00 2001 From: Georg Lehner Date: Mon, 10 Jun 2024 17:33:08 +0200 Subject: [PATCH] Cleanup Dependency/Resolves form code --- helpdesk/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helpdesk/forms.py b/helpdesk/forms.py index 6c981a3c..81e9dcbe 100644 --- a/helpdesk/forms.py +++ b/helpdesk/forms.py @@ -589,7 +589,7 @@ class TicketDependencyForm(forms.ModelForm): class Meta: model = TicketDependency - exclude = ('ticket',) + fields = ('depends_on',) def __init__(self, ticket, *args, **kwargs): super(TicketDependencyForm,self).__init__(*args, **kwargs) @@ -602,7 +602,6 @@ class TicketResolvesForm(forms.ModelForm): class Meta: model = TicketDependency - #exclude = ('depends_on',) fields = ('ticket',) def __init__(self, ticket, *args, **kwargs):