Opened 5 years ago

Closed 5 years ago

#20606 closed Bug (fixed)

Non equivalent code example in template tag for…empty

Reported by: Baptiste Darthenay Owned by:
Component: Documentation Version: master
Severity: Normal Keywords: typo
Cc: baptiste+django-code@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Claude Paroz)

There is two different versions of code that should be equivalent, but there are two differences, which are a plural and an exclamation mark.

{% empty %}
    <li>Sorry, no athlete in this list!</li>
{% endfor %}
{% else %}
    <li>Sorry, no athletes in this list.</li>
{% endif %}

We might keep the second version I think.

Change History (5)

comment:1 Changed 5 years ago by Baptiste Mispelon

Triage Stage: UnreviewedAccepted

The plural form is the correct one.

As for the exclamation mark, I'm fine either way.

comment:2 Changed 5 years ago by Claude Paroz

Description: modified (diff)

comment:3 Changed 5 years ago by Baptiste Darthenay

Cc: baptiste+django-code@… added
Owner: changed from nobody to Baptiste Darthenay
Status: newassigned

comment:4 Changed 5 years ago by Baptiste Darthenay

Owner: Baptiste Darthenay deleted
Status: assignednew

comment:5 Changed 5 years ago by Baptiste Darthenay

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top