count is integer, thanks Osman Masood
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-08-14 20:37:43) dev
|
||||
Version 2.00.0 (2012-08-15 09:06:31) dev
|
||||
|
||||
+1
-1
@@ -8309,7 +8309,7 @@ class Field(Expression):
|
||||
return (value, None)
|
||||
|
||||
def count(self, distinct=None):
|
||||
return Expression(self.db, self.db._adapter.COUNT, self, distinct, self.type)
|
||||
return Expression(self.db, self.db._adapter.COUNT, self, distinct, 'integer')
|
||||
|
||||
def __nonzero__(self):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user