mirror of
https://github.com/django/django.git
synced 2025-07-05 10:19:20 +00:00
[multi-db] Fixed dummy backend DatabaseWrapper(): needs to accept settings argument like real backends.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
05086e5353
commit
f043b395ba
@ -16,10 +16,14 @@ class DatabaseError(Exception):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
class DatabaseWrapper:
|
class DatabaseWrapper:
|
||||||
|
|
||||||
cursor = complain
|
cursor = complain
|
||||||
_commit = complain
|
_commit = complain
|
||||||
_rollback = complain
|
_rollback = complain
|
||||||
|
|
||||||
|
def __init__(self, settings):
|
||||||
|
self.settings = settings
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
pass # close()
|
pass # close()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user