diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-08-25 18:27:57 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-08-25 18:27:57 +0000 |
| commit | 6d387d3d1bc481b47f6be4e4294bb87cc8b75c9f (patch) | |
| tree | 7fb6ead02b345bf1818b5f829f15bc2e6af917aa | |
| parent | de64e0d57076882e6bafd414424e1cf889e319fb (diff) | |
Fixed #5255 -- It's now possible again to use Django without a database. This had temporarily gotten buggy after the django.core.management refactoring last week
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/backends/dummy/base.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/django/db/backends/dummy/base.py b/django/db/backends/dummy/base.py index 50191f88fe..fd25d3038f 100644 --- a/django/db/backends/dummy/base.py +++ b/django/db/backends/dummy/base.py @@ -8,6 +8,7 @@ ImproperlyConfigured. """ from django.core.exceptions import ImproperlyConfigured +from django.db.backends import BaseDatabaseFeatures, BaseDatabaseOperations def complain(*args, **kwargs): raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet." @@ -21,13 +22,12 @@ class DatabaseError(Exception): class IntegrityError(DatabaseError): pass -class ComplainOnGetattr(object): - def __getattr__(self, *args, **kwargs): - complain() +class DatabaseOperations(BaseDatabaseOperations): + quote_name = complain class DatabaseWrapper(object): - features = ComplainOnGetattr() - ops = ComplainOnGetattr() + features = BaseDatabaseFeatures() + ops = DatabaseOperations() operators = {} cursor = complain _commit = complain |
