1
0
mirror of https://github.com/django/django.git synced 2025-01-10 18:36:05 +00:00
django/docs/ref
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
..
class-based-views Refs #27829 -- Removed settings.DEFAULT_CONTENT_TYPE per deprecation timeline. 2019-01-17 10:50:25 -05:00
contrib Fixed #27486 -- Fixed Python 3.7 DeprecationWarning in intword and filesizeformat filters. 2019-06-11 20:34:59 +02:00
files Fixed "byte string" typo in various docs and comments. 2019-03-28 10:00:12 +01:00
forms Changed docs to link to Python's description of iterable. 2019-05-17 17:27:19 +02:00
models Fixed #30486 -- Fixed the default value of Aggregate.distinct and updated example of custom aggregate functions. 2019-06-11 11:40:48 +02:00
templates Refs #20122 -- Corrected documentation of pluralize template filter. 2019-05-03 11:35:19 +02:00
applications.txt
checks.txt Fixed #30396 -- Added system checks for uniqueness of indexes and constraints names. 2019-05-02 09:13:20 +02:00
clickjacking.txt
csrf.txt Fixed #30299 -- Removed jQuery dependency from getCookie() in CSRF docs. 2019-03-28 19:51:54 -04:00
databases.txt Refs #29548 -- Updated docs for MariaDB support. 2019-05-27 19:59:49 +02:00
django-admin.txt Fixed typo in docs/ref/django-admin.txt. 2019-05-07 11:17:24 +02:00
exceptions.txt
index.txt
middleware.txt Removed redundant object descriptions to prevent warnings with Sphinx 2.1.0. 2019-06-03 14:08:51 +02:00
migration-operations.txt
request-response.txt Fixed #30196 -- Made FileResponse set Content-Disposition inline if filename is available. 2019-05-17 12:07:27 +02:00
schema-editor.txt
settings.txt Changed charset and collation link to MySQL docs. 2019-06-11 11:16:27 +02:00
signals.txt
template-response.txt Refs #27829 -- Removed settings.DEFAULT_CONTENT_TYPE per deprecation timeline. 2019-01-17 10:50:25 -05:00
unicode.txt Removed unnecessary /static from links to PostgreSQL docs. 2019-03-29 21:49:44 -04:00
urlresolvers.txt
urls.txt
utils.txt Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use html.escape()/unescape(). 2019-04-25 15:09:07 +02:00
validators.txt
views.txt