#19229: Use thousands separator to ease the reading of numbers with many digits
-------------------------------+--------------------
Reporter: zachborboa@… | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
{{{
diff --git a/contrib/admin/templates/admin/pagination.html
b/contrib/admin/templates/admin/pagination.html
index 3588132..a8d744a 100644
--- a/contrib/admin/templates/admin/pagination.html
+++ b/contrib/admin/templates/admin/pagination.html
@@ -1,12 +1,13 @@
{% load admin_list %}
{% load i18n %}
+{% load humanize %}
<p class="paginator">
{% if pagination_required %}
{% for i in page_range %}
{% paginator_number cl i %}
{% endfor %}
{% endif %}
-{{ cl.result_count }} {% ifequal cl.result_count 1 %}{{
cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{%
endifequal %}
+{{ cl.result_count|intcomma }} {% ifequal cl.result_count 1 %}{{
cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{%
endifequal %}
{% if show_all_url %} <a href="{{ show_all_url }}"
class="showall">{% trans 'Show all' %}</a>{% endif %}
{% if cl.formset and cl.result_count %}<input type="submit" name="_save"
class="default" value="{% trans 'Save' %}"/>{% endif %}
</p>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/19229>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.