From: jlaine Date: Mon, 31 May 2010 18:45:48 +0000 (+0000) Subject: accept "using" keyword for get_count X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=6cba2f11be4c464583e2e303d33a013918358e5a;p=matthijs%2Fupstream%2Fdjango-ldapdb.git accept "using" keyword for get_count git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@905 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/ldapdb/models/query.py b/ldapdb/models/query.py index bbb46e2..f433956 100644 --- a/ldapdb/models/query.py +++ b/ldapdb/models/query.py @@ -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