move transaction disable
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 11 Apr 2011 14:41:35 +0000 (14:41 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 11 Apr 2011 14:41:35 +0000 (14:41 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1045 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/__init__.py
ldapdb/backends/ldap/base.py

index 4d6f8cf8a8a98eb20d4ab3e9cb910b13e68e54ff..dde6304e1b5d0cf8331f60ecb7d0164c3a25ff6c 100644 (file)
@@ -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
index a77922134eab0f81b5cf3de70fc789e7abdf56f7..201f287a4c5dff82bc0ef83ce7a8bed1815dd4ca 100644 (file)
@@ -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