diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:50:28 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:50:28 +0000 |
| commit | 74f88194c3f16b35dd2bc8133cc7a2f97d2f7221 (patch) | |
| tree | c7d94675a155a9d71d3f84ba80f451dded3a6e53 /docs | |
| parent | 287de02764faf1662be93b47f1bb8f738cea6d5f (diff) | |
Fixed #12345 -- Fixed bug in db/models.txt.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/db/models.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index 1fa5cff80a..0f454335aa 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -950,8 +950,8 @@ If you have a ``Place`` that is also a ``Restaurant``, you can get from the ``Place`` object to the ``Restaurant`` object by using the lower-case version of the model name:: - >>> p = Place.objects.filter(name="Bob's Cafe") - # If Bob's Cafe is a Restaurant object, this will give the child class: + >>> p = Place.objects.get(id=12) + # If p is a Restaurant object, this will give the child class: >>> p.restaurant <Restaurant: ...> |
