Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Tweaked the dummy database backend initialisation.

In order to report more comphrehensible tracebacks, remove the super()
constructor call, since passing args to object.__init__ ends badly. So some
subclassing possibilities are now removed, but it's the "dummy" backend, so
we can make some compromises.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent bd6fc48 commit 5eccc596525c396941cec8e985ebf7fa418e2026 @malcolmt malcolmt committed
Showing with 3 additions and 5 deletions.
  1. +3 −5 django/db/backends/dummy/
8 django/db/backends/dummy/
@@ -28,22 +28,20 @@ class DatabaseOperations(BaseDatabaseOperations):
class DatabaseClient(BaseDatabaseClient):
runshell = complain
class DatabaseIntrospection(BaseDatabaseIntrospection):
get_table_list = complain
get_table_description = complain
get_relations = complain
get_indexes = complain
-class DatabaseWrapper(object):
+class DatabaseWrapper(object):
operators = {}
cursor = complain
_commit = complain
_rollback = ignore
def __init__(self, *args, **kwargs):
- super(DatabaseWrapper, self).__init__(*args, **kwargs)
self.features = BaseDatabaseFeatures()
self.ops = DatabaseOperations()
self.client = DatabaseClient(self)

0 comments on commit 5eccc59

Please sign in to comment.
Something went wrong with that request. Please try again.