diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2011-01-13 13:47:21 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2011-01-13 13:47:21 +0000 |
| commit | 7b8c38250ce812c67bc85f454092c74ad5b81339 (patch) | |
| tree | 784e5e58997ec7be67608125d40f749b517edfef /docs/intro/tutorial03.txt | |
| parent | 80f48260630c3db98f6e0af282bc339eba999009 (diff) | |
Fixed #15057 - documented change in [14992]
Thanks to Tai Lee for the patch.
Refs #15025, #7153
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial03.txt')
| -rw-r--r-- | docs/intro/tutorial03.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index 88b4bea34f..bb851b7820 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -415,9 +415,9 @@ like: The template system uses dot-lookup syntax to access variable attributes. In the example of ``{{ poll.question }}``, first Django does a dictionary lookup -on the object ``poll``. Failing that, it tries attribute lookup -- which works, -in this case. If attribute lookup had failed, it would've tried calling the -method ``question()`` on the poll object. +on the object ``poll``. Failing that, it tries an attribute lookup -- which +works, in this case. If attribute lookup had failed, it would've tried a +list-index lookup. Method-calling happens in the ``{% for %}`` loop: ``poll.choice_set.all`` is interpreted as the Python code ``poll.choice_set.all()``, which returns an |
