Re: [Django] #36381: Improve tutorial's voting template to show a message when no choices are available

6 views
Skip to first unread message

Django

unread,
May 9, 2025, 8:25:07 PM5/9/25
to django-...@googlegroups.com
#36381: Improve tutorial's voting template to show a message when no choices are
available
-------------------------------------+-------------------------------------
Reporter: Birendra Kumar | Owner: Birendra
Sharma | Kumar Sharma
Type: | Status: assigned
Cleanup/optimization |
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: tutorial, | Triage Stage:
documentation, template, | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Antoliny):

* owner: (none) => Birendra Kumar Sharma
* status: new => assigned

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

Django

unread,
May 12, 2025, 3:38:26 AM5/12/25
to django-...@googlegroups.com
#36381: Improve tutorial's voting template to show a message when no choices are
available
-------------------------------------+-------------------------------------
Reporter: Birendra Kumar | Owner: Birendra
Sharma | Kumar Sharma
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: tutorial, | Triage Stage:
documentation, template, | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* resolution: => wontfix
* status: assigned => closed

Comment:

I agree with Tim here
I don't see a strong reason why adding more logic makes this clearer. I
feel the tutorial should keep logic simple and focus on the concepts it's
trying to introduce.
A question is not really "valid" without choices. The detail view also
doesn't have an if/else condition. The user of the tutorial can make their
own extensions adding logic to handle this

If you disagree, you can bring this up on the forum and add more
reasoning: https://forum.djangoproject.com/c/internals/5
--
Ticket URL: <https://code.djangoproject.com/ticket/36381#comment:3>
Reply all
Reply to author
Forward
0 new messages