summaryrefslogtreecommitdiff
path: root/docs/ref/contrib/humanize.txt
AgeCommit message (Collapse)Author
2024-05-27Fixed #35443 -- Changed ordinal to return negative numbers unchanged.Simon Törnqvist
Previously, `-1` was converted to `"-1th"`. This has been updated to return negative numbers "as is", so that for example `-1` is converted to `"-1"`. This is now explicit in the docs. Co-authored-by: Martin Jonson <artin.onson@gmail.com>
2021-01-14Removed versionadded/changed annotations for 3.1.Mariusz Felisiak
2020-05-13Removed versionadded/changed annotations for 3.0.Mariusz Felisiak
2020-03-16Fixed #31363 -- Added support for negative integers to intword template filter.jay20162016
2019-06-11Fixed #27486 -- Fixed Python 3.7 DeprecationWarning in intword and ↵Jon Dufresne
filesizeformat filters. intword and filesizeformat passed floats to ngettext() which is deprecated in Python 3.7. The rationale for this warning is documented in BPO-28692: https://bugs.python.org/issue28692. For filesizeformat, the filesize value is expected to be an int -- it fills %d string formatting placeholders. It was likely coerced to a float to ensure floating point division on Python 2. Python 3 always does floating point division, so coerce to an int instead of a float to fix the warning. For intword, the number may contain a decimal component. In English, a decimal component makes the noun plural. A helper function, round_away_from_one(), was added to convert the float to an integer that is appropriate for ngettext().
2019-06-11Fixed intword example in docs/ref/contrib/humanize.txt.Jon Dufresne
2016-12-30Fixed #27652 -- Doc'd that intcomma works with floats.Mads Jensen
2016-02-01Fixed #26124 -- Added missing code formatting to docs headers.rowanv
2016-01-22Fixed #26020 -- Normalized header stylings in docs.Elif T. Kus
2014-09-06Fixed #23340 -- Corrected naturaltime docs to match behavior.Collin Anderson
Thanks zachborboa for the report and blackguest for the patch.
2012-12-29Removed versionadded/changed annotations dating back to 1.4.Aymeric Augustin
2012-08-02Fixed #16941 - Clarified naturaltime output when the time is more than a day ↵Tim Graham
old. Thanks antoviaque for the patch.
2011-10-14Fixed many more ReST indentation errors, somehow accidentally missed from ↵Luke Plant
[16955] git-svn-id: http://code.djangoproject.com/svn/django/trunk@16983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-23Fixed #16878 -- Improved intword filter to support numbers up to decillion ↵Jannis Leidel
and googol. Thanks to crodjer for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16897 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-17Fixed #15921 -- Refined naturaltime filter added in r16071 to use timesince ↵Jannis Leidel
and timeuntil filters as fallbacks instead of date filter. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-14Tweaked weird wording of docs/ref/contrib/humanize.txt 'naturaltime' section ↵Adrian Holovaty
from [16071] git-svn-id: http://code.djangoproject.com/svn/django/trunk@16226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-06Fixed #6392 -- Made django.contrib.humanize template tags locale aware. ↵Jannis Leidel
Thanks, Dave McLain. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed a couple of small documentation typos.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #12771 -- Added naturaltime filter to humanize contrib app. Thanks, ↵Jannis Leidel
phinpho, djansoft and xtrqt. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-26Fixed #14000 - remove versionadded/changed tags for Django 1.0 and 1.1Timo Graham
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15055 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-29Fixed #14804 -- Metadata improvement, broken link fix, and alphabetization ↵Gabriel Hurley
of template filters in contrib.humanize reference docs. Thanks to adamv for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-19Fixed #14141: docs now use the :doc: construct for links between documents.Jacob Kaplan-Moss
Thanks, Ramiro Morales. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02Fixed #8753: converted "new in ..." callouts to proper Sphinx ↵Jacob Kaplan-Moss
"versionadded/versionchanged" directives. Thanks to Marc Fargas for all the heavy lifting here. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Massive reorganization of the docs. See the new docs online at ↵Jacob Kaplan-Moss
http://docs.djangoproject.com/. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8506 bcc190cf-cafb-0310-a4f2-bffc1f526a37