another SQLCustomType improvement, Alexander is right

This commit is contained in:
Massimo DiPierro
2012-06-05 20:02:36 -05:00
parent 95d01663a7
commit b45134512a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-06-05 18:18:48) dev
Version 2.00.0 (2012-06-05 20:02:32) dev
+1 -1
View File
@@ -1493,7 +1493,7 @@ class BaseAdapter(ConnectionPool):
obj = obj()
if isinstance(fieldtype, SQLCustomType):
value = fieldtype.encoder(obj)
if fieldtype.native in ('string','text'):
if fieldtype.type in ('string','text'):
return self.adapt(value)
return value
if isinstance(obj, (Expression, Field)):