diff --git a/django/db/__init__.py b/django/db/__init__.py index f4c782f85d..65ba8a1617 100644 --- a/django/db/__init__.py +++ b/django/db/__init__.py @@ -13,7 +13,12 @@ except ImportError: __all__ = ('backend', 'connection', 'DatabaseError') # singleton to represent the default connection in connections -_default = object() +class dummy(object): + def __str__(self): + return '' +_default = dummy() +del dummy + # storage for local default connection _local = local()