make DatabaseFeatures take a "connection" argument for django trunk compatibility
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Tue, 29 Mar 2011 09:34:00 +0000 (09:34 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Tue, 29 Mar 2011 09:34:00 +0000 (09:34 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1008 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/__init__.py

index 72f0889895c666b032c5433511f402c2c78b2cbf..fc9e0ff8c2bcdaf8026166c92c85713816d8ffb2 100644 (file)
@@ -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):