1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

fix object journal styles

This commit is contained in:
checktheroads
2021-03-17 22:37:13 -07:00
parent 8ea2949d84
commit cf8dad5763
2 changed files with 22 additions and 16 deletions

View File

@ -377,6 +377,12 @@ class ImageAttachmentForm(BootstrapMixin, forms.ModelForm):
class JournalEntryForm(BootstrapMixin, forms.ModelForm):
kind = forms.ChoiceField(
choices=add_blank_choice(JournalEntryKindChoices),
required=False,
widget=StaticSelect2()
)
class Meta:
model = JournalEntry
fields = ['assigned_object_type', 'assigned_object_id', 'kind', 'comments']