[Django] #22214: Doc Code Mistake: No polls are available.

2 views
Skip to first unread message

Django

unread,
Mar 5, 2014, 3:10:57 PM3/5/14
to django-...@googlegroups.com
#22214: Doc Code Mistake: No polls are available.
-------------------------------+--------------------
Reporter: anonymous | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
url: https://docs.djangoproject.com/en/1.6/intro/tutorial05/

The code:
{{{
self.assertContains(response, "No polls are available.")
}}}

should remove the latest ".", because the response is without "."

{{{
self.assertContains(response, "No polls are available")
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/22214>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 5, 2014, 3:15:30 PM3/5/14
to django-...@googlegroups.com
#22214: Doc Code Mistake: No polls are available.
-------------------------------+--------------------------------------
Reporter: anonymous | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.6
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by bmispelon):

* status: new => closed
* needs_docs: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_better_patch: => 0


Comment:

Hi,

Unless I'm mistaken, the `index` view being tested is the one defined in
part 3 [1] and that one does include a period in the template:
{{{
{% if latest_poll_list %}
<ul>
{% for poll in latest_poll_list %}
<li><a href="/polls/{{ poll.id }}/">{{ poll.question }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No polls are available.</p>
{% endif %}
}}}

I'll mark this as `invalid`. Feel free to reopen if I've misunderstodd
your report.

Thanks.

[1] https://docs.djangoproject.com/en/1.6/intro/tutorial03/#write-views-
that-actually-do-something

--
Ticket URL: <https://code.djangoproject.com/ticket/22214#comment:1>

Reply all
Reply to author
Forward
0 new messages