diff options
| author | Jason Pellerin <jpellerin@gmail.com> | 2006-11-19 14:20:21 +0000 |
|---|---|---|
| committer | Jason Pellerin <jpellerin@gmail.com> | 2006-11-19 14:20:21 +0000 |
| commit | 0c128ffb2430b8577651cfc6751efcfbd7824f82 (patch) | |
| tree | e4ecb73199489cdcd6f1b1de4ccb1b3044d5b223 | |
| parent | 27bcc64ac57356ddd08643f4bfb7e43effafc281 (diff) | |
Fixed bug where assigning a connection though Class.objects.db would raise a NameError.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@4086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/__init__.py b/django/db/__init__.py index b0dfa31848..10b8665e6e 100644 --- a/django/db/__init__.py +++ b/django/db/__init__.py @@ -271,10 +271,10 @@ class ConnectionInfoDescriptor(object): def __set__(self, instance, value): try: - self.local.cnx[instance] = instance_connection + self.local.cnx[instance] = value except AttributeError: # First access in thread - self.local.cnx = {instance: instance_connection} + self.local.cnx = {instance: value} def __delete__(self, instance): try: |
