#10294: Tutorial 4 uses incorrect variable
---------------------------+------------------------------------------------
Reporter: nic | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: SVN
Keywords: tutorial | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
I could also be doing something wrong here, but it looks like a line in
the section where you create generic views is incorrect. Here's the
current line:
{{{(r'^(?P<poll_id>\d+)/vote/$', 'mysite.polls.views.vote'),}}}
It seems to me that the {{{poll_id}}} should have been changed to
{{{object_id}}}. I'm brand new to Python (and Django), so I'm not certain
that's the complete solution, but it seemed to fix the generic views
problems I had. (Also, sorry I didn't attach a patch even though it seems
simple to me; very overwhelmed first-timer here.)
--
Ticket URL: <http://code.djangoproject.com/ticket/10294>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---