Skip to content

Commit

Permalink
Fixed typo in tutorial03 -- thanks, Robin Munn
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@206 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jul 19, 2005
1 parent b430d4c commit b617884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial03.txt
Expand Up @@ -307,7 +307,7 @@ The template system uses dot-lookup syntax to access variable attributes. In
the example of ``{{ poll.question }}``, first Django does a dictionary lookup the example of ``{{ poll.question }}``, first Django does a dictionary lookup
on the object ``poll``. Failing that, it tries attribute lookup -- which works, 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 in this case. If attribute lookup had failed, it would've tried calling the
method ``choice()`` on the poll object. method ``question()`` on the poll object.


Method-calling happens in the ``{% for %}`` loop: ``poll.get_choice_list`` is Method-calling happens in the ``{% for %}`` loop: ``poll.get_choice_list`` is
interpreted as the Python code ``poll.get_choice_list()``, which returns a list interpreted as the Python code ``poll.get_choice_list()``, which returns a list
Expand Down

0 comments on commit b617884

Please sign in to comment.