#29604: Problem in views.py file: args used for positional argument
-------------------------------------------+------------------------
Reporter: Rajdeep Bharati | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 2.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
[https://docs.djangoproject.com/en/2.0/intro/tutorial04/]
The problem is in views.py file in the tutorial documentation:
{{{
return HttpResponseRedirect(reverse('polls:results', args=(question.id,)))
}}}
Now args is used for positional arguments, and there can be (in theory)
multiple. So it should be a collection of items. For example:
{{{
return HttpResponseRedirect(reverse('polls:results', args=[question_id],
))
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29604>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/057.6a420d9fd30ba4286393c18634cd3a19%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.