Commit Graph

28608 Commits

Author SHA1 Message Date
007gzs ff8e6e83a9 [3.1.x] Fixed #31853 -- Fixed wrapping of translated action labels in admin sidebar.
Backport of b0af56f639 from master
2020-08-05 10:27:17 +02:00
Mariusz Felisiak 42e31d4922 [3.1.x] Added stub release notes for 3.1.1.
Backport of 6c19230297 from master
2020-08-04 10:42:58 +02:00
Mariusz Felisiak 795943e6e7 [3.1.x] Post-release version bump. 2020-08-04 09:59:26 +02:00
Mariusz Felisiak ec5bc3a991 [3.1.x] Bumped version for 3.1 release. 2020-08-04 09:56:19 +02:00
Mariusz Felisiak 34b6622ff9 [3.1.x] Finalized release notes for Django 3.1.
Backport of df37c2ec76 from master
2020-08-04 09:50:21 +02:00
Mariusz Felisiak 9857352655 [3.1.x] Fixed #31842 -- Added DEFAULT_HASHING_ALGORITHM transitional setting.
It's a transitional setting helpful in migrating multiple instance of
the same project to Django 3.1+.

Thanks Markus Holtermann for the report and review, Florian
Apolloner for the implementation idea and review, and Carlton Gibson
for the review.

Backport of d907371ef9 from master.
2020-08-04 09:39:29 +02:00
Mariusz Felisiak acb7866b1f [3.1.x] Moved note about features deprecated in Django 3.1 above their descriptions.
Backport of bce4a53670 from master
2020-08-03 20:51:43 +02:00
Mariusz Felisiak bdad2adb26 [3.1.x] Added release date for 2.2.15 and 3.0.9.
Backport of b68b8cb89a from master
2020-08-03 08:56:15 +02:00
Claude Paroz 08fb75ea64 [3.1.x] Updated translations from Transifex
Backport of 1a60838fa6 from master
2020-08-01 21:39:47 +02:00
Mariusz Felisiak c67314ff95 [3.1.x] Refs #27468 -- Fixed TestSigner.test_dumps_loads_legacy_signature.
Added in 1d6fdca557.
Backport of 7c929fcf7c from master
2020-08-01 20:43:34 +02:00
Mariusz Felisiak b84b1921da [3.1.x] Refs #27468 -- Added tests and release notes for signing.dumps()/loads() changes.
Follow up to 71c4fb7beb.

Backport of 1d6fdca557 from master
2020-07-31 22:07:34 +02:00
Mariusz Felisiak 0e02560535 [3.1.x] Corrected signing.dumps()/loads() signatures in docs.
Backport of 8703680ebe from master
2020-07-31 11:33:50 +02:00
Tim Graham 32cb1fe1c6 [3.1.x] Refs #31829 -- Added DatabaseFeatures.json_key_contains_list_matching_requires_list.
CockroachDB's behavior matches PostgreSQL.
Backport of 184a6eebb0 from master
2020-07-30 06:40:32 +02:00
Andrzej Bartosiński df8696c0b7 [3.1.x] Corrected admin.register() signature in docs.
Backport of eb215da363 from master
2020-07-29 12:54:26 +02:00
Claude Paroz 06474e929f [3.1.x] Refs #30165 -- Removed leftover 'u' prefix.
Backport of bac5777bff from master
2020-07-29 10:20:08 +02:00
sage 23ce3d8491 [3.1.x] Fixed #31829 -- Used JSONField __contains lookup on key transforms.
Backport of 2d8dcba03a from master
2020-07-28 20:53:11 +02:00
Mariusz Felisiak 247bcef6b4 [3.1.x] Fixed #31836 -- Dropped support for JSONField __contains and __contained_by lookups on SQLite.
The current implementation works only for basic examples without
supporting nested structures and doesn't follow "the general principle
that the contained object must match the containing object as to
structure and data contents, possibly after discarding some
non-matching array elements or object key/value pairs from the
containing object".

Backport of ba691933ce from master.
2020-07-28 13:08:19 +02:00
Mariusz Felisiak 028a5f86f2 [3.1.x] Fixed #31835 -- Dropped support for JSONField __contains lookup on Oracle.
The current implementation works only for basic examples without
supporting nested structures and doesn't follow "the general principle
that the contained object must match the containing object as to
structure and data contents, possibly after discarding some
non-matching array elements or object key/value pairs from the
containing object".
Backport of 02447fb133 from master
2020-07-28 11:54:35 +02:00
Harpreet Sharma 3116444559 [3.1.x] Fixed #31821 -- Removed outdated note in FILE_UPLOAD_PERMISSIONS docs.
Follow up to 22aab8662f

Backport of 248d03fbe9 from master
2020-07-23 21:00:45 +02:00
LincolnPuzey bc75442ebf [3.1.x] Fixed #31816 -- Corrected the expected content type in StreamingHttpResponse docs.
Backport of d754361096 from master
2020-07-23 13:13:17 +02:00
Ramiro Morales 26113b9de1 [3.1.x] Fixed typo in docs/ref/models/querysets.txt.
Backport of 51e536178c from master
2020-07-22 23:37:14 +02:00
Buk Bukowski 2521664041 [3.1.x] Fixed #31814 -- Fixed typo in docs/ref/settings.txt.
Backport of f65454801b from master
2020-07-22 22:39:27 +02:00
Adam Johnson 2b3ca7a5f1 [3.1.x] Doc'd Model.MultipleObjectsReturned docs and improved documentation related with models exceptions.
Backport of bc4fea92b2 from master
2020-07-22 20:21:06 +02:00
Adam Johnson 77abe98816 [3.1.x] Refs #24763 -- Moved DoesNotExist to Model class docs.
Backport of b5f0efa19c from master
2020-07-22 20:20:57 +02:00
Mariusz Felisiak 2ff2084cfd [3.1.x] Fixed #31805 -- Fixed SchemaTests.tearDown() when table names are case-insensitive.
Backport of fd53db842c from master
2020-07-22 12:51:03 +02:00
Mariusz Felisiak 7a3fa3af68 [3.1.x] Fixed #31797 -- Skipped schema tests on specific MariaDB versions.
test_alter_not_unique_field_to_primary_key() test is affected by
https://jira.mariadb.org/browse/MDEV-19598 on MariaDB 10.4.4 to 10.5.1.

test_alter_pk_with_self_referential_field() test is affected by
https://jira.mariadb.org/browse/MDEV-22775 on MariaDB 10.4 series
from 10.4.13.
Backport of c071c408d7 from master
2020-07-22 10:58:14 +02:00
Tim Graham d004bcee0c [3.1.x] Reverted "Fixed #30300 -- Allowed migrations to be loaded from directories without __init__.py file."
This reverts commit 3cd3bebe89.
Backport of ff55adbd0d from master
2020-07-22 07:04:52 +02:00
David Chorpash 5360f002f8 [3.1.x] Refs #31720 -- Added examples to BoolAnd() and BoolOr() documentation.
Backport of a2e621b14e from master
2020-07-21 07:02:18 +02:00
Adam Johnson f91ba43ebf [3.1.x] Improved description of USE_THOUSAND_SEPARATOR setting.
Backport of 80f92177eb from master
2020-07-20 12:55:44 +02:00
Tom Forbes b830cc02ed [3.1.x] Used temporary directory in RestartWithReloaderTests.test_manage_py().
Using the current directory can cause a PermissionError.

Backport of 730711e828 from master
2020-07-20 09:41:28 +02:00
Mariusz Felisiak c7e95dea80 [3.1.x] Bumped version for 3.1 release candidate 1. 2020-07-20 08:19:51 +02:00
Florian Apolloner bfe404deb9 [3.1.x] Fixed #31784 -- Fixed crash when sending emails on Python 3.6.11+, 3.7.8+, and 3.8.4+.
Fixed sending emails crash on email addresses with display names longer
then 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+.

Wrapped display names were passed to email.headerregistry.Address()
what caused raising an exception because address parts cannot contain
CR or LF.

See https://bugs.python.org/issue39073

Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 96a3ea39ef from master
2020-07-20 07:15:04 +02:00
Mariusz Felisiak 474f65406f [3.1.x] Pinned asgiref to 3.2 series with minimum version to 3.2.10. 2020-07-17 11:08:39 +02:00
Adam Johnson 32e22f0531 [3.1.x] Improved ManyToManyField.through docs.
Backport of e7fa8aff43 from master
2020-07-17 10:48:13 +02:00
Adam Johnson e63644d37b [3.1.x] Refs #31502 -- Made minor edits to Model._state docs.
Backport of 5ef6f62634 from master
2020-07-16 21:12:13 +02:00
Mariusz Felisiak 54dce8148a [3.1.x] Refs #31790 -- Removed incorrect item from 2.2.15 and 3.0.9 release notes.
Django 2.2 and 3.0 don't support settings samesite='None' in
HttpResponse.set_cookie() so fix is not necessary and will not be
backported.
Backport of 9bc8b1ad2d from master
2020-07-16 09:27:39 +02:00
Mariusz Felisiak 3ca8cc0df1 [3.1.x] Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in HttpResponse.delete_cookie().
Cookies with the "SameSite" flag set to None and without the "secure"
flag will be soon rejected by latest browser versions.

This affects sessions and messages cookies.
Backport of 240cbb63bf from master
2020-07-16 08:17:45 +02:00
Eric Theise ac699ba647 [3.1.x] FIxed typo in docs/ref/contrib/postgres/forms.txt.
Backport of d08e6f55e3 from master
2020-07-15 09:04:11 +02:00
Claude Paroz dda8a2aa1d Added admin translatable string. 2020-07-14 21:34:02 +02:00
Kelechi Precious Nwachukwu 6b273a2165 [3.1.x] Added Igbo language.
Backport of 2cd3e7eeaf from master
2020-07-14 21:05:55 +02:00
Caio Ariede 7fe7d83295 [3.1.x] Fixed #21528 -- Added note about filtering form field's queryset based on instance to admin docs.
Backport of d38c34119e from master
2020-07-13 23:02:05 +02:00
Mariusz Felisiak 7045fa7f7a [3.1.x] Refs #27430 -- Added buffer argument to DiscoverRunner docs.
Backport of 188f7786bc from master
2020-07-10 19:06:40 +02:00
Mariusz Felisiak 33457aa3cf [3.1.x] Refs #30676 -- Added pdb argument to DiscoverRunner docs.
Backport of 2c43840dfb from master
2020-07-10 19:01:39 +02:00
Ramiro Morales fb9add3c7d [3.1.x] Corrected custom model fields how-to.
get_prep_value() method is complementary of from_db_value().

Follow up to e9103402c0.

Backport of 52a0a03671 from master
2020-07-10 11:37:37 +02:00
Mariusz Felisiak e6285cac83 [3.1.x] Fixed #31773 -- Fixed preserving output_field in ExpressionWrapper for combined expressions.
Thanks Thodoris Sotiropoulos for the report and Simon Charette for the
implementation idea.

Regression in df32fd42b8.
Backport of 8a6df55f2d from master
2020-07-09 11:55:45 +02:00
Carlton Gibson b19372952c [3.1.x] Removed unsupported third-party database backends from docs.
Backport of 1d8256719e from master
2020-07-08 22:30:23 +02:00
Tim Park 3756a0509a [3.1.x] Fixed #31739 -- Documented dependency between HttpRequest stream IO methods and body.
Backport of 060576b0ab from master
2020-07-08 10:41:28 +02:00
Tim Park dad6973629 [3.1.x] Fixed #31502 -- Documented Model._state.db and Model._state.adding
Backport of 697e59d5cf from master
2020-07-08 10:06:45 +02:00
Resulkary 2160481066 [3.1.x] Added Turkmen language.
Backport of af2b3fee08 from master
2020-07-08 09:03:22 +02:00
Jason Held 703256fc68 [3.1.x] Fixed #24816 -- Clarified docs about preventing duplicate signals.
Backport of 639142e24d from master
2020-07-08 08:23:08 +02:00