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:
Lujin 2018-02-19 20:06:07 +09:00
parent 0643b3c22e
commit d5f2752481
1 changed files with 1 additions and 0 deletions

View File

@ -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]