X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fdjango-ldapdb.git;a=blobdiff_plain;f=ldapdb%2Fmodels%2Fquery.py;h=f433956d52071c5bdac9f71a842dcf565449193f;hp=bbb46e2553f991e124bbcbc16d1ee3bed0d71beb;hb=6cba2f11be4c464583e2e303d33a013918358e5a;hpb=8ce4d769e2f75d829afbcc761b01c06a6219e3e0 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