make rollback a no-op
[matthijs/upstream/django-ldapdb.git] / ldapdb / backends / ldap / base.py
index 1b21647ebe97e2a7f64a5299748f08fd98fc8188..99b27285ca37e792d9e7bca094922cef8ba7827a 100644 (file)
@@ -49,8 +49,8 @@ class DatabaseOperations(BaseDatabaseOperations):
         return name
 
 class DatabaseWrapper(BaseDatabaseWrapper):
-    def __init__(self, settings_dict, alias='ldap'):
-        super(DatabaseWrapper, self).__init__(settings_dict, alias=alias)
+    def __init__(self, *args, **kwargs):
+        super(DatabaseWrapper, self).__init__(*args, **kwargs)
 
         self.charset = "utf-8"
         self.features = DatabaseFeatures(self)
@@ -67,6 +67,9 @@ class DatabaseWrapper(BaseDatabaseWrapper):
                 self.settings_dict['PASSWORD'])
         return DatabaseCursor(self.connection)
 
+    def _rollback(self):
+        pass
+
     def add_s(self, dn, modlist):
         cursor = self._cursor()
         return cursor.connection.add_s(dn.encode(self.charset), modlist)