#36381: Improve tutorial's voting template to show a message when no choices are
available
-------------------------------------+-------------------------------------
Reporter: Birendra Kumar | Owner: (none)
Sharma |
Type: | Status: new
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 Tim Graham):
* needs_better_patch: 0 => 1
* summary:
Improve tutorial template to show a message when no choices are
available
=>
Improve tutorial's voting template to show a message when no choices
are available
Comment:
I'm not in love with the suggestion, but I'll leave the ticgket open for a
second opinion. Tutorial 2 already shows how to add choices to a question,
so that proposed section redundant. Tutorial 3 already shows how to use
`{% if %}` / `{% else %}` to show a "No items available" message. Finally,
the patch contains some unneeded indentation changes.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36381#comment:1>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.