From: jlaine Date: Mon, 11 Apr 2011 14:41:35 +0000 (+0000) Subject: move transaction disable X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=b1bbd52d06dd8c9160ae925b5c407f642f2698c1;p=matthijs%2Fupstream%2Fdjango-ldapdb.git move transaction disable git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1045 e071eeec-0327-468d-9b6a-08194a12b294 --- 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