Reformat Resolves/Depends lists into tables. Allow adding/deleting of parent tickets

This commit is contained in:
Georg Lehner
2024-06-06 00:28:36 +02:00
parent 5b2441b994
commit d7afcb6578
5 changed files with 150 additions and 26 deletions

View File

@ -591,6 +591,14 @@ class TicketDependencyForm(forms.ModelForm):
model = TicketDependency
exclude = ('ticket',)
class TicketResolvesForm(forms.ModelForm):
''' Adds this ticket as a dependency for a different ticket '''
class Meta:
model = TicketDependency
#exclude = ('depends_on',)
fields = ('ticket',)
class MultipleTicketSelectForm(forms.Form):
tickets = forms.ModelMultipleChoiceField(