Django

Code

Changeset 3446

Show
Ignore:
Timestamp:
07/25/06 13:34:14 (2 years ago)
Author:
jpellerin
Message:

[multi-db] Added str to _default connection singleton.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/multiple-db-support/django/db/__init__.py

    r3430 r3446  
    1414 
    1515# singleton to represent the default connection in connections 
    16 _default = object() 
     16class dummy(object): 
     17    def __str__(self): 
     18        return '<default>' 
     19_default = dummy() 
     20del dummy 
     21 
    1722 
    1823# storage for local default connection