#31647: "once", "twice", "three times" on humanize
-------------------------------------+-------------------------------------
Reporter: Eray | Owner: nobody
Erdin |
Type: New | Status: new
feature |
Component: Template | Version: 3.0
system | Keywords: template, humanize,
Severity: Normal | filter, tag, tags
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Django's built-in humanize module/app already contains many useful filter
tags.
[https://docs.djangoproject.com/en/stable/ref/contrib/humanize/]
However, it lacks a filter for converting integers to "once", "twice",
"three times". Examples:
{{{
{{ 1|times }} {# once #}
{{ 2|times }} {# twice #}
{{ 3|times }} {# three times #}
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31647>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/052.b4bddfa22e99d38db953d50cdd2d891d%40djangoproject.com.