From: jlaine Date: Tue, 29 Mar 2011 09:34:00 +0000 (+0000) Subject: make DatabaseFeatures take a "connection" argument for django trunk compatibility X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=62de279ee18d0054b8eef779844365723250b96b;p=matthijs%2Fupstream%2Fdjango-ldapdb.git make DatabaseFeatures take a "connection" argument for django trunk compatibility git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1008 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/ldapdb/__init__.py b/ldapdb/__init__.py index 72f0889..fc9e0ff 100644 --- a/ldapdb/__init__.py +++ b/ldapdb/__init__.py @@ -50,7 +50,8 @@ class DatabaseCursor(object): self.connection = ldap_connection class DatabaseFeatures(BaseDatabaseFeatures): - pass + def __init__(self, connection): + self.connection = connection class DatabaseOperations(BaseDatabaseOperations): def quote_name(self, name): @@ -60,7 +61,7 @@ class LdapConnection(object): def __init__(self): self.connection = None self.charset = "utf-8" - self.features = DatabaseFeatures() + self.features = DatabaseFeatures(self) self.ops = DatabaseOperations() def _cursor(self):