diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-26 16:11:43 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-26 16:11:43 +0000 |
| commit | 786c750c40417a59449f1c5595fcc6b370ca7d4f (patch) | |
| tree | c642a693e5179e42feb793b0cb4d23451f81eeb0 /docs/tutorial03.txt | |
| parent | f14c98e44c388e7171977b9be8d70dd3176d7919 (diff) | |
Fixed #163 -- Added 'pk' database API option, which is a shorthand for (primary_key)__exact
git-svn-id: http://code.djangoproject.com/svn/django/trunk@316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial03.txt')
| -rw-r--r-- | docs/tutorial03.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial03.txt b/docs/tutorial03.txt index 1c547a670f..3f2f97b7b1 100644 --- a/docs/tutorial03.txt +++ b/docs/tutorial03.txt @@ -242,7 +242,7 @@ for a given poll. Here's the view:: from django.core.exceptions import Http404 def detail(request, poll_id): try: - p = polls.get_object(id__exact=poll_id) + p = polls.get_object(pk=poll_id) except polls.PollDoesNotExist: raise Http404 t = template_loader.get_template('polls/detail') |
