accept "using" keyword for get_count
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 31 May 2010 18:45:48 +0000 (18:45 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 31 May 2010 18:45:48 +0000 (18:45 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@905 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/models/query.py

index bbb46e2553f991e124bbcbc16d1ee3bed0d71beb..f433956d52071c5bdac9f71a842dcf565449193f 100644 (file)
@@ -187,7 +187,7 @@ class Query(BaseQuery):
         super(Query, self).__init__(*args, **kwargs)
         self.connection = ldapdb.connection
 
-    def get_count(self):
+    def get_count(self, using=None):
         filterstr = ''.join(['(objectClass=%s)' % cls for cls in self.model.object_classes])
         sql, params = self.where.as_sql()
         filterstr += sql