Skip to content
Browse files

rollback on dummy database now has no effect (previously raised an er…

…ror). This means that custom 500 error pages (and e-mailed exceptions) now work even if a database has not been configured. Fixes #4429.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent ea07351 commit 4cda993213fce2b4567ba31f2dc6a116445ce664 Simon Willison committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/db/backends/dummy/
5 django/db/backends/dummy/
@@ -12,6 +12,9 @@
def complain(*args, **kwargs):
raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet."
+def ignore(*args, **kwargs):
+ pass
class DatabaseError(Exception):
@@ -21,7 +24,7 @@ class IntegrityError(DatabaseError):
class DatabaseWrapper:
cursor = complain
_commit = complain
- _rollback = complain
+ _rollback = ignore
def __init__(self, **kwargs):

0 comments on commit 4cda993

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