Fix _get_on_change_args to keep value type
This commit is contained in:
1 parent
ecd03ca33a
commit
763523b65d
1 file changed
+5
-2
@@ -364,8 +364,11 @@ class ModelRecord(SignalEvent):
|
||||
for arg in args:
|
||||
scope = values
|
||||
for i in arg.split('.'):
|
||||
scope = scope.get(i, {})
|
||||
res[arg] = scope or False
|
||||
if i not in scope:
|
||||
scope = False
|
||||
break
|
||||
scope = scope[i]
|
||||
res[arg] = scope
|
||||
return res
|
||||
|
||||
def on_change(self, fieldname, attr):
|
||||
|
||||
Reference in new issue
Block a user