mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
11487 remove set null from read-only custom fields bulk edit (#11552)
* 11487 remove set null from read-only custom fields bulk edit * 11487 removes unreleased sentry-sdk
This commit is contained in:
parent
a4d8169df8
commit
eca624b13d
@ -131,7 +131,7 @@ class NetBoxModelBulkEditForm(BootstrapMixin, CustomFieldsMixin, forms.Form):
|
|||||||
|
|
||||||
def _extend_nullable_fields(self):
|
def _extend_nullable_fields(self):
|
||||||
nullable_custom_fields = [
|
nullable_custom_fields = [
|
||||||
name for name, customfield in self.custom_fields.items() if not customfield.required
|
name for name, customfield in self.custom_fields.items() if (not customfield.required and customfield.ui_visibility == CustomFieldVisibilityChoices.VISIBILITY_READ_WRITE)
|
||||||
]
|
]
|
||||||
self.nullable_fields = (*self.nullable_fields, *nullable_custom_fields)
|
self.nullable_fields = (*self.nullable_fields, *nullable_custom_fields)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user