Fix binary size handling migration to Active Record

review1017002
This commit is contained in:
Nicolas Évrard committed 2013-08-16 11:07:44 +02:00
1 parent fcd983a776
commit c1e77c77eb
1 file changed
+2 -1
+2 -1
View File
@@ -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