Fixed #1285 -- Fixed bug in docs/db-api.txt. Thanks, adrianob@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2549b31970
commit
7a132e2754
|
@ -294,7 +294,7 @@ Given an instance of an object, related objects can be looked-up directly using
|
||||||
convenience functions. For example, if ``p`` is a ``Poll`` instance,
|
convenience functions. For example, if ``p`` is a ``Poll`` instance,
|
||||||
``p.get_choice_list()`` will return a list of all associated choices. Astute
|
``p.get_choice_list()`` will return a list of all associated choices. Astute
|
||||||
readers will note that this is the same as
|
readers will note that this is the same as
|
||||||
``choices.get_list(poll_id__exact=p.id)``, except clearer.
|
``choices.get_list(poll__id__exact=p.id)``, except clearer.
|
||||||
|
|
||||||
Each type of relationship creates a set of methods on each object in the
|
Each type of relationship creates a set of methods on each object in the
|
||||||
relationship. These methods are created in both directions, so objects that are
|
relationship. These methods are created in both directions, so objects that are
|
||||||
|
|
Loading…
Reference in New Issue