Skip to content

Commit

Permalink
Fixes #14472: Fix display of hidden custom fields in object edit forms
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Dec 8, 2023
1 parent b532435 commit d428dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/release-notes/version-3.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Bug Fixes

* [#14432](https://github.com/netbox-community/netbox/issues/14432) - Fix hyperlinks for global search result attributes
* [#14472](https://github.com/netbox-community/netbox/issues/14472) - Fix display of hidden custom fields in object edit forms

## v3.7-beta1 (2023-12-05)

Expand Down
2 changes: 1 addition & 1 deletion netbox/netbox/forms/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _get_content_type(self):

def _get_custom_fields(self, content_type):
return CustomField.objects.filter(content_types=content_type).exclude(
ui_visible=CustomFieldUIVisibleChoices.HIDDEN
ui_editable=CustomFieldUIEditableChoices.HIDDEN
)

def _get_form_field(self, customfield):
Expand Down

0 comments on commit d428dd1

Please sign in to comment.