1
0
mirror of https://github.com/django/django.git synced 2024-12-23 09:36:06 +00:00
django/docs/ref/contrib
Jon Dufresne 9e38ed0536 Fixed #27486 -- Fixed Python 3.7 DeprecationWarning in intword and 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-11 20:34:59 +02:00
..
admin Fixed #28831 -- Doc'd that InlineModelAdmin methods' obj argument is the parent object. 2019-05-31 12:35:15 +02:00
gis Removed redundant object descriptions to prevent warnings with Sphinx 2.1.0. 2019-06-03 14:08:51 +02:00
postgres Removed unnecessary /static from links to PostgreSQL docs. 2019-03-29 21:49:44 -04:00
auth.txt Refs #30226 -- Added User.get_user_permissions() method. 2019-06-05 13:56:37 +02:00
contenttypes.txt Corrected GenericRelation's related_query_name manual lookup example. 2019-01-21 10:13:42 -05:00
flatpages.txt Used extlinks for Django's source code. 2019-03-28 20:32:17 -04:00
humanize.txt Fixed #27486 -- Fixed Python 3.7 DeprecationWarning in intword and filesizeformat filters. 2019-06-11 20:34:59 +02:00
index.txt
messages.txt
redirects.txt Used extlinks for Django's source code. 2019-03-28 20:32:17 -04:00
sitemaps.txt Refs #23829 -- Made ping_google command/function use https for the sitemap URL. 2019-01-11 10:32:22 -05:00
sites.txt
staticfiles.txt Refs #28606 -- Corrected deprecation version for CachedStaticFilesStorage. 2019-01-17 18:34:44 -05:00
syndication.txt Fixed #29352 -- Allowed specifying a Feed language. 2019-05-06 15:10:54 +02:00