Prevent KeyError when popping modified field from readed value
issue3349 review1052003
This commit is contained in:
1 parent
e5c06be845
commit
93575d5ee3
1 file changed
+1
-1
@@ -133,7 +133,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