From 62de279ee18d0054b8eef779844365723250b96b Mon Sep 17 00:00:00 2001 From: jlaine Date: Tue, 29 Mar 2011 09:34:00 +0000 Subject: [PATCH] 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 --- ldapdb/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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): -- 2.30.2