Fix binary size handling migration to Active Record
review1017002
This commit is contained in:
1 parent
fcd983a776
commit
c1e77c77eb
1 file changed
+2
-1
@@ -43,7 +43,8 @@ class Binary(Field):
|
||||
res = {}
|
||||
converter = buffer
|
||||
default = False
|
||||
format_ = Transaction().context.pop('%s.%s' % (model, name), '')
|
||||
format_ = Transaction().context.pop('%s.%s' % (model.__name__, name),
|
||||
'')
|
||||
if format_ == 'size':
|
||||
converter = len
|
||||
default = 0
|
||||
|
||||
Reference in new issue
Block a user