From b1bbd52d06dd8c9160ae925b5c407f642f2698c1 Mon Sep 17 00:00:00 2001 From: jlaine Date: Mon, 11 Apr 2011 14:41:35 +0000 Subject: [PATCH] move transaction disable git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1045 e071eeec-0327-468d-9b6a-08194a12b294 --- ldapdb/__init__.py | 3 +-- ldapdb/backends/ldap/base.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ldapdb/__init__.py b/ldapdb/__init__.py index 4d6f8cf..dde6304 100644 --- a/ldapdb/__init__.py +++ b/ldapdb/__init__.py @@ -52,8 +52,7 @@ if hasattr(settings, 'LDAPDB_SERVER_URI'): 'ENGINE': 'ldapdb.backends.ldap', 'NAME': settings.LDAPDB_SERVER_URI, 'USER': settings.LDAPDB_BIND_DN, - 'PASSWORD': settings.LDAPDB_BIND_PASSWORD, - 'SUPPORTS_TRANSACTIONS': False} + 'PASSWORD': settings.LDAPDB_BIND_PASSWORD} connection = db.connections['ldap'] # Add the LDAP router diff --git a/ldapdb/backends/ldap/base.py b/ldapdb/backends/ldap/base.py index a779221..201f287 100644 --- a/ldapdb/backends/ldap/base.py +++ b/ldapdb/backends/ldap/base.py @@ -74,6 +74,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): self.creation = DatabaseCreation(self) self.features = DatabaseFeatures(self) self.ops = DatabaseOperations() + self.settings_dict['SUPPORTS_TRANSACTIONS'] = False def close(self): pass -- 2.30.2