count is integer, thanks Osman Masood
This commit is contained in:
1 parent
5145272415
commit
91c88d56eb
2 files changed
+2
-2
No files matched your search
@@ -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)
|
return (value, None)
|
||||||
|
|
||||||
def count(self, distinct=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):
|
def __nonzero__(self):
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in new issue
Block a user