Fix _get_on_change_args to keep value type

This commit is contained in:
Cédric Krier committed 2010-01-21 13:35:08 +01:00
1 parent ecd03ca33a
commit 763523b65d
1 file changed
+5 -2
+5 -2
View File
@@ -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):