mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Move nullable_fields out of Meta for bulk edit forms
This commit is contained in:
@@ -69,14 +69,11 @@ class BulkEditMixin:
|
||||
"""
|
||||
Base form for editing multiple objects in bulk
|
||||
"""
|
||||
nullable_fields = ()
|
||||
|
||||
def __init__(self, model, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.model = model
|
||||
self.nullable_fields = ()
|
||||
|
||||
# Copy any nullable fields defined in Meta
|
||||
if hasattr(self, 'Meta') and hasattr(self.Meta, 'nullable_fields'):
|
||||
self.nullable_fields = self.Meta.nullable_fields
|
||||
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user