This commit is contained in:
Petr Dlouhý 2020-02-25 14:25:52 +01:00
parent cdddc79998
commit 07d6ee7f87

View File

@ -183,7 +183,7 @@ class AbstractTicketForm(CustomFieldMixin, forms.Form):
self.fields['kbitem'] = forms.ChoiceField(
widget=forms.Select(attrs={'class': 'form-control'}),
required=False,
label=_('Knowedge Base Item'),
label=_('Knowledge Base Item'),
choices=[(kbi.pk, kbi.title) for kbi in KBItem.objects.filter(category=kbcategory.pk)],
)