#20606: Non equivalent code example in template tag for…empty -------------------------------+-------------------- Reporter: batisteo | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: master Severity: Normal | Keywords: typo Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- There is two different versions of code that should be equivalent, but there are two differences, which are a **plural** and an **exclamation mark**.
{{{#!python {% empty %} <li>Sorry, no athlete in this list!</li> {% endfor %} }}} {{{#!python {% else %} <li>Sorry, no athletes in this list.</li> {% endif %} }}} We might keep the second version I think. [https://docs.djangoproject.com/en/def/ref/templates/builtins/#for-empty] -- Ticket URL: <https://code.djangoproject.com/ticket/20606> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/051.d7e9763ba6983a78e115e46049b2f7cd%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.