mirror of https://github.com/django/django.git
Fixed reST formatting from [8212].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
593810a501
commit
9b4ff7c1ad
|
@ -1511,7 +1511,9 @@ Using managers for related object access
|
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
By default, Django uses a "bare" (i.e. default) manager when accessing related
|
||||
objects (i.e. ``choice.poll``). If this default isn't appropriate for your default manager, you can force Django to use a custom manager for related object attributes by giving it a ``use_for_related_fields`` property::
|
||||
objects (i.e. ``choice.poll``). If this default isn't appropriate for your
|
||||
default manager, you can force Django to use a custom manager for related object
|
||||
attributes by giving it a ``use_for_related_fields`` property::
|
||||
|
||||
class MyManager(models.Manager)::
|
||||
use_for_related_fields = True
|
||||
|
|
Loading…
Reference in New Issue