Ensure _get_changed_synthetic_fields() return updatable fields
Currently _get_changed_synthetic_fields() does not guarantee returned fields to be updatable. This patch adds this guarantee. Change-Id: I123ae390bec489a931180a2e33f4bf7b1d51edb2 Closes-Bug: #1750353
This commit is contained in:
parent
0643b3c22e
commit
d5f2752481
@ -691,6 +691,7 @@ class NeutronDbObject(NeutronObject):
|
||||
|
||||
def _get_changed_synthetic_fields(self):
|
||||
fields = self.obj_get_changes()
|
||||
fields = get_updatable_fields(self, fields)
|
||||
for field in self._get_changed_persistent_fields():
|
||||
if field in fields:
|
||||
del fields[field]
|
||||
|
Loading…
Reference in New Issue
Block a user