mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-27 01:36:11 -06:00
Change .set() to .clear()
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
parent
18a1ae56f1
commit
50cbeb6f54
@ -547,7 +547,7 @@ class BulkEditView(GetReturnURLMixin, BaseMultiObjectView):
|
|||||||
# Handle M2M fields after save
|
# Handle M2M fields after save
|
||||||
for name, m2m_field in m2m_fields.items():
|
for name, m2m_field in m2m_fields.items():
|
||||||
if name in form.nullable_fields and name in nullified_fields:
|
if name in form.nullable_fields and name in nullified_fields:
|
||||||
getattr(obj, name).set([])
|
getattr(obj, name).clear()
|
||||||
else:
|
else:
|
||||||
getattr(obj, name).set(form.cleaned_data[name])
|
getattr(obj, name).set(form.cleaned_data[name])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user