<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/docs/ref/contrib/humanize.txt, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2024-05-27T08:54:25Z</updated>
<entry>
<title>Fixed #35443 -- Changed ordinal to return negative numbers unchanged.</title>
<updated>2024-05-27T08:54:25Z</updated>
<author>
<name>Simon Törnqvist</name>
<email>simon.tornqvist@liu.se</email>
</author>
<published>2024-05-16T08:09:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d3a7ed5bcc45000a6c3dd55d85a4caaa83299f83'/>
<id>urn:sha1:d3a7ed5bcc45000a6c3dd55d85a4caaa83299f83</id>
<content type='text'>
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 &lt;artin.onson@gmail.com&gt;
</content>
</entry>
<entry>
<title>Removed versionadded/changed annotations for 3.1.</title>
<updated>2021-01-14T16:50:04Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2021-01-05T10:20:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=b7dd89ed5389067cb70294682ffef1ba23d33934'/>
<id>urn:sha1:b7dd89ed5389067cb70294682ffef1ba23d33934</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed versionadded/changed annotations for 3.0.</title>
<updated>2020-05-13T07:07:51Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2020-05-04T10:29:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=4c5236ef93db714b63eedcc5a162631a6ca1def9'/>
<id>urn:sha1:4c5236ef93db714b63eedcc5a162631a6ca1def9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #31363 -- Added support for negative integers to intword template filter.</title>
<updated>2020-03-16T07:44:43Z</updated>
<author>
<name>jay20162016</name>
<email>jayjay.jay20162016@gmail.com</email>
</author>
<published>2020-03-14T16:32:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=924c01ba095f7df9529a65c176a892a5c1624ec5'/>
<id>urn:sha1:924c01ba095f7df9529a65c176a892a5c1624ec5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #27486 -- Fixed Python 3.7 DeprecationWarning in intword and filesizeformat filters.</title>
<updated>2019-06-11T18:34:59Z</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2019-06-09T19:48:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9e38ed0536c7dc598a6c2c1bb774d0a8db3cdddc'/>
<id>urn:sha1:9e38ed0536c7dc598a6c2c1bb774d0a8db3cdddc</id>
<content type='text'>
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().
</content>
</entry>
<entry>
<title>Fixed intword example in docs/ref/contrib/humanize.txt.</title>
<updated>2019-06-11T18:18:36Z</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2019-06-11T05:20:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=175656e166712db019a4704c4031510b9fd6b00a'/>
<id>urn:sha1:175656e166712db019a4704c4031510b9fd6b00a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #27652 -- Doc'd that intcomma works with floats.</title>
<updated>2016-12-30T18:43:40Z</updated>
<author>
<name>Mads Jensen</name>
<email>mje@inducks.org</email>
</author>
<published>2016-12-29T10:53:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=398a859642636a2de0ab920befa320cd9954b49a'/>
<id>urn:sha1:398a859642636a2de0ab920befa320cd9954b49a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #26124 -- Added missing code formatting to docs headers.</title>
<updated>2016-02-01T15:42:05Z</updated>
<author>
<name>rowanv</name>
<email>rrvspam@gmail.com</email>
</author>
<published>2016-01-24T21:26:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=a6ef025dfb2a1d1bd23893408eef6d066fb506d9'/>
<id>urn:sha1:a6ef025dfb2a1d1bd23893408eef6d066fb506d9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #26020 -- Normalized header stylings in docs.</title>
<updated>2016-01-22T17:12:17Z</updated>
<author>
<name>Elif T. Kus</name>
<email>elifkus@gmail.com</email>
</author>
<published>2016-01-03T10:56:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=bca9faae95db2a92e540fbd08505c134639916fe'/>
<id>urn:sha1:bca9faae95db2a92e540fbd08505c134639916fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #23340 -- Corrected naturaltime docs to match behavior.</title>
<updated>2014-09-06T11:47:56Z</updated>
<author>
<name>Collin Anderson</name>
<email>collin@onetencommunications.com</email>
</author>
<published>2014-09-05T23:55:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7353e26d5d41563ca51520fb38b5950530cb6b9c'/>
<id>urn:sha1:7353e26d5d41563ca51520fb38b5950530cb6b9c</id>
<content type='text'>
Thanks zachborboa for the report and blackguest for the patch.
</content>
</entry>
</feed>
