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

Fixes #8976: Add missing object_type field on CustomField REST API serializer

This commit is contained in:
jeremystretch
2022-03-28 13:34:37 -04:00
parent 340ff82487
commit 227bac7c60
3 changed files with 11 additions and 3 deletions

View File

@ -48,6 +48,10 @@ class CustomFieldForm(BootstrapMixin, forms.ModelForm):
class Meta:
model = CustomField
fields = '__all__'
help_texts = {
'type': "The type of data stored in this field. For object/multi-object fields, select the related object "
"type below."
}
widgets = {
'type': StaticSelect(),
'filter_logic': StaticSelect(),