summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2006-09-08 14:11:52 +0000
committerJason Pellerin <jpellerin@gmail.com>2006-09-08 14:11:52 +0000
commitae3896cb74d4bc42acaf6fade0d2a57e28045b2a (patch)
tree864889d84b35d2514c32ce7f8d02065b882c93bd /django
parentb17f250907351923f39f8a50b87a35b26d2ca307 (diff)
[multi-db] Minor documentation updates
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/db/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/db/__init__.py b/django/db/__init__.py
index ae6eca5e7d..22bb720dd4 100644
--- a/django/db/__init__.py
+++ b/django/db/__init__.py
@@ -221,7 +221,7 @@ class ConnectionInfoDescriptor(object):
connections per instance, and always returns the same connection for an
instance in particular thread during a particular request.
- Any object that includes an attribute ``model`` that holds a model class
+ Any object that includes a ``model`` attribute that holds a model class
can use this descriptor to manage connections.
"""
@@ -279,6 +279,7 @@ class LocalizingProxy:
self.__kw = kw
def __getattr__(self, attr):
+ # Private (__*) attributes are munged
if attr.startswith('_LocalizingProxy'):
return self.__dict__[attr]
try:
@@ -289,6 +290,7 @@ class LocalizingProxy:
return getattr(getattr(self.__storage, self.__name), attr)
def __setattr__(self, attr, val):
+ # Private (__*) attributes are munged
if attr.startswith('_LocalizingProxy'):
self.__dict__[attr] = val
return