#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.

-- 
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070196b6d2341a-c80d6423-24c3-46d5-bb19-f6c4d8ea9342-000000%40eu-central-1.amazonses.com.

Reply via email to