diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-04-26 16:00:15 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-04-26 16:02:53 +0200 |
| commit | 680a0f08b1ace39f995fce975caabb1875b07c6f (patch) | |
| tree | 165a26d3f91522e129adc12f977c38919d840a96 /docs/intro/tutorial04.txt | |
| parent | 6d6af7244b7e3c42ef77c89d6c3e8e0e79e7176f (diff) | |
Updated doc links to point to Python 3 documentation
Diffstat (limited to 'docs/intro/tutorial04.txt')
| -rw-r--r-- | docs/intro/tutorial04.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index a4863fe73d..dc6f621ff3 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -106,9 +106,9 @@ This code includes a few things we haven't covered yet in this tutorial: <django.http.HttpRequest.POST>` in our code, to ensure that data is only altered via a POST call. -* ``request.POST['choice']`` will raise :exc:`~exceptions.KeyError` if +* ``request.POST['choice']`` will raise :exc:`KeyError` if ``choice`` wasn't provided in POST data. The above code checks for - :exc:`~exceptions.KeyError` and redisplays the question form with an error + :exc:`KeyError` and redisplays the question form with an error message if ``choice`` isn't given. * After incrementing the choice count, the code returns an |
