Changeset 3738
- Timestamp:
- 09/08/06 09:11:52 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/multiple-db-support/django/db/__init__.py
r3651 r3738 222 222 instance in particular thread during a particular request. 223 223 224 Any object that includes a n attribute ``model``that holds a model class224 Any object that includes a ``model`` attribute that holds a model class 225 225 can use this descriptor to manage connections. 226 226 """ … … 280 280 281 281 def __getattr__(self, attr): 282 # Private (__*) attributes are munged 282 283 if attr.startswith('_LocalizingProxy'): 283 284 return self.__dict__[attr] … … 290 291 291 292 def __setattr__(self, attr, val): 293 # Private (__*) attributes are munged 292 294 if attr.startswith('_LocalizingProxy'): 293 295 self.__dict__[attr] = val django/branches/multiple-db-support/docs/multiple_database_support.txt
r3513 r3738 70 70 ============================== 71 71 72 Each manager has a dbattribute that can be used to access the model's73 connection. Access the dbattribute of a model's manager to obtain the72 Each manager has a ``db`` attribute that can be used to access the model's 73 connection. Access the ``db`` attribute of a model's manager to obtain the 74 74 model's currently configured connection. 75 75 django/branches/multiple-db-support/docs/settings.txt
r3712 r3738 588 588 TIME_FORMAT and YEAR_MONTH_FORMAT. 589 589 590 OTHER_DATABASES 591 --------------- 592 593 Default: ``{}`` 594 595 Other database connections to use in addition to the default connection. See the `multiple database support docs`_. 596 590 597 PREPEND_WWW 591 598 ----------- … … 853 860 .. _cache docs: http://www.djangoproject.com/documentation/cache/ 854 861 .. _middleware docs: http://www.djangoproject.com/documentation/middleware/ 862 .. _muliple database support docs: http://www.djangoproject.com/documentation/multiple_database_support/ 855 863 .. _session docs: http://www.djangoproject.com/documentation/sessions/ 856 864 .. _See available choices: http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
