Prevent KeyError when popping modified field from readed value
issue3349 review1052003 (transplanted from 3cbb5dc3f8e88bb826aec28053eefc99b56d2ef2)
This commit is contained in:
1 parent
bb2d9765ec
commit
7642be42f9
1 file changed
+1
-1
@@ -115,7 +115,7 @@ class Record(SignalEvent):
|
||||
value = id2value.get(id)
|
||||
if record and not record.destroyed and value:
|
||||
for key in record.modified_fields:
|
||||
value.pop(key)
|
||||
value.pop(key, None)
|
||||
record.set(value, signal=False)
|
||||
return self.group.fields.get(name, False)
|
||||
|
||||
|
||||
Reference in new issue
Block a user