27729 Commits

Author SHA1 Message Date
Florian Apolloner
ccc088f8ce [3.0.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 96a3ea39ef0790dbc413dde0a3e19f6a769356a2 from master
2020-07-20 07:15:14 +02:00
Adam Johnson
5bd7c18306 [3.0.x] Improved ManyToManyField.through docs.
Backport of e7fa8aff432a90b6df9914d63aad239164b6b4d4 from master
2020-07-17 10:48:32 +02:00
Adam Johnson
051e6f58ea [3.0.x] Refs #31502 -- Made minor edits to Model._state docs.
Backport of 5ef6f626347f9ea13915f3cf5b8b045c5b42b102 from master
2020-07-16 21:12:33 +02:00
Mariusz Felisiak
331324ecce
[3.0.x] Fixed #31790 -- Fixed setting SameSite cookies flag 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 240cbb63bf9965c63d7a3cc9032f91410f414d46 from master.
2020-07-16 09:30:15 +02:00
Eric Theise
419a78300f [3.0.x] Fixed typo in docs/ref/contrib/postgres/forms.txt.
Backport of d08e6f55e3a986a8d4b3a58431d9615c7bc81eaa from master
2020-07-15 09:05:04 +02:00
Caio Ariede
96b04f53c5 [3.0.x] Fixed #21528 -- Added note about filtering form field's queryset based on instance to admin docs.
Backport of d38c34119e91a533c797098f150abe99b5ee2fd8 from master
2020-07-13 23:02:51 +02:00
Mariusz Felisiak
b44e2d62c0 [3.0.x] Refs #30676 -- Added pdb argument to DiscoverRunner docs.
Backport of 2c43840dfba42ed02574a270d826fda08e4b50d1 from master
2020-07-10 19:10:28 +02:00
Ramiro Morales
7808a04fe5 [3.0.x] Corrected custom model fields how-to.
get_prep_value() method is complementary of from_db_value().

Follow up to e9103402c0fa873aea58a6a11dba510cd308cb84.

Backport of 52a0a03671437fc4c1be1eef431685a16aef8b43 from master
2020-07-10 11:38:26 +02:00
Carlton Gibson
bb47c1dde4 [3.0.x] Removed unsupported third-party database backends from docs.
Backport of 1d8256719eecb724476e6cb8d63cfebf6ba1a3cc from master
2020-07-08 22:30:51 +02:00
Tim Park
502349ce77 [3.0.x] Fixed #31739 -- Documented dependency between HttpRequest stream IO methods and body.
Backport of 060576b0abac460d72714e300aa709d1e7a87dd7 from master
2020-07-08 10:41:57 +02:00
Tim Park
b66588abe2 [3.0.x] Fixed #31502 -- Documented Model._state.db and Model._state.adding
Backport of 697e59d5cf81e6c7e4a06ca98d6e3e16cea486dc from master
2020-07-08 10:07:23 +02:00
Jason Held
3ca2361d70 [3.0.x] Fixed #24816 -- Clarified docs about preventing duplicate signals.
Backport of 639142e24d41c5e5a508cb1280f32fd7ff159cca from master
2020-07-08 08:26:15 +02:00
Jacob Walls
9141841cca [3.0.x] Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works.
Backport of 659a73bc0a2df9be856e23fcfc6cc66d0d1a35fd from master
2020-07-08 08:26:11 +02:00
David Smith
8f750bc295 [3.0.x] Fixed #30945 -- Doc'd plural equations changes in 2.2. release notes.
Backport of 392036be29b759204cbc4033072672acacabf3f7 from master
2020-07-03 09:39:23 +02:00
Carlton Gibson
9e4f55757d [3.0.x] Refs #6903 -- Adjusted ModelAdmin.preserve_filters docs.
Backport of b142bd4a1b83b77c5c81a8cf5a80a63608f96ad4 from master
2020-07-02 21:11:10 +02:00
Mariusz Felisiak
5a15e3e378 [3.0.x] Added stub release notes for 3.0.9.
Backport of c2a835703f706583542e9dae82749ac3b92819f8 from master
2020-07-01 07:13:25 +02:00
Mariusz Felisiak
bb0b9a779f [3.0.x] Post-release version bump. 2020-07-01 06:30:38 +02:00
Mariusz Felisiak
47c5666ae7 [3.0.x] Bumped version for 3.0.8 release. 3.0.8 2020-07-01 06:25:03 +02:00
Mariusz Felisiak
7d133e81e8 [3.0.x] Added release date for 2.2.14 and 3.0.8.
Backport of 0f3aecf581b50215820455eb2f6a19a1b3b3ef8b from master
2020-07-01 06:18:55 +02:00
Mariusz Felisiak
21e8f9f7c9 [3.0.x] Fixed #31751 -- Fixed database introspection with cx_Oracle 8.
Backport of 615e32162ff646db3456b90fb4eaaecc33dd3e4e from master
2020-06-30 09:56:14 +02:00
Ad Timmering
d1ff7c50e3 [3.0.x] Fixed #30807 -- Fixed TestArchive.test_extract_file_permissions() when umask is 0o000.
Fixed test that checks permissions on files extracted from archives
with no permissions set, to not assume a default umask of 0o002.

Test regression in c95d063e776e849cf1a0bf616c654165cb89c706.
Backport of ec5aa2161d8015a3fe57dcbbfe14200cd18f0a16 from master
2020-06-29 07:52:47 +02:00
Steven Pousty
9b9083981a [3.0.x] Fixed #31743 -- Doc't that managed=False prevents Django from managing tables modifications.
Backport of d2c135da4c75079e45661ec609bd72f27dddf2a9 from master
2020-06-26 09:59:20 +02:00
Adam Johnson
af2e95b0fa [3.0.x] Refs #31493 -- Replaced var with const/let in documentation JS.
Backport of 2afa61e7d99b2ff2656dc64b6e28db88baf786a4 from master

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-06-24 12:27:31 +02:00
Simon Charette
453a5bf302 [3.0.x] Fixed #31735 -- Fixed migrations crash on namespaced inline FK addition on PostgreSQL.
The namespace of the constraint must be included when making the
constraint immediate.

Regression in 22ce5d0031bd795ade081394043833e82046016c.

Thanks Rodrigo Estevao for the report.

Backport of 2e8941b6f90e65ffad3f07083b8de59e8ed29767 from master
2020-06-24 09:00:22 +02:00
David Smith
f22f660a33 [3.0.x] Adjusted model definition in GeoDjango tutorial.
The example uses the world border data set, where
one of the entries has a null field value.

Backport of 6bc9283751d51cab474d1bf6883a3b40cce32d4b from master
2020-06-17 20:17:42 +02:00
Tobias Krönke
0afe8ba2d6 [3.0.x] Fixed #31689 -- Doc'd caveat about using bulk_create()'s ignore_conflicts on MariDB and MySQL.
Backport of 69e0d9c553bb55dde8d7d1d479a78bfa7093f406 from master
2020-06-15 12:54:01 +02:00
Hasan Ramezani
b61af177ee [3.0.x] Fixed #31696 -- Updated OWASP links in docs.
Backport of a16080810bee8b3baf9ae7ac7b8433cb7b293e00 from master
2020-06-15 09:45:45 +02:00
sebashwa
33767d5ab6 [3.0.x] Fixed #31690 -- Added note about fuzzy entries in translation docs.
Backport of 3d664a158de18acf72fc8e0671f0f390cbca4b2e from master
2020-06-15 09:05:43 +02:00
Mariusz Felisiak
e2cdbc585a
[3.0.x] Refs #31660 -- Fixed annotations.tests crash on MySQL.
Follow up to be7a295141337189b9eceea506489bdfe07f199e.
2020-06-11 10:36:24 +02:00
Mariusz Felisiak
9ec6eca136 [3.0.x] Refs #31682 -- Doc'd minimal sqlparse version in Django 2.2.
Support for sqlparse < 0.2.2 was broken in
40b0a58f5ff949fba1072627e4ad11ef98aa7f36 because is_whitespace property
was added in sqlparse 0.2.2.
Backport of 4339f2aff272bceabd67e452c65bcfe0700b3f09 from master
2020-06-10 06:54:51 +02:00
Nicolas Baccelli
2b2500021b [3.0.x] Fixed #31664 -- Reallowed using non-expressions having filterable attribute as rhs in queryset filters.
Regression in 4edad1ddf6203326e0be4bdb105beecb0fe454c4.

Backport of b38d44229ff185ad156bcb443d6db0db7ae3eb98 from master
2020-06-08 09:20:08 +02:00
Mariusz Felisiak
be7a295141 [3.0.x] Fixed #31660 -- Fixed queryset crash when grouping by m2o relation.
Regression in 3a941230c85b2702a5e1cd97e17251ce21057efa.

Thanks Tomasz Szymański for the report.
Backport of 78ad4b4b0201003792bfdbf1a7781cbc9ee03539 from master
2020-06-08 07:23:33 +02:00
Mariusz Felisiak
e8723af44b [3.0.x] Fixed #31654 -- Fixed cache key validation messages.
Backport of 926148ef019abcac3a9988c78734d9336d69f24e from master
2020-06-05 07:22:52 +02:00
Hasan Ramezani
b80c5baf29 [3.0.x] Fixed #31650 -- Added note uniqueness of constraints names in docs.
Backport of 55556e51fb152c864ddc782d9b56e8b785ccf8bc from master
2020-06-04 07:39:08 +02:00
David Smith
8ec607be84 [3.0.x] Updated How to install Django on Windows guide.
Backport of 25352dc019d175dfa6e62a50de76cb3614955077 from master
2020-06-03 16:29:30 +02:00
Mariusz Felisiak
88dc69fcec [3.0.x] Refs CVE-2020-13254 -- Fixed cache.tests when KEY_PREFIX is defined.
Follow up to 2c82414914ae6476be5a166be9ff49c24d0d9069.

Backport of 229c9c6653356a0bc23846d83b2d4b5d0438a145 from master
2020-06-03 13:01:21 +02:00
Carlton Gibson
fafbcc57db [3.0.x] Added CVE-2020-13254 and CVE-2020-13596 to security archive.
Backport of 54975780ee2e4017844ecad94835fdce43d97377 from master
2020-06-03 12:06:17 +02:00
Mariusz Felisiak
683d01b0ef [3.0.x] Made default_role_error use logger.
This prevents raising errors for translated docs, see
https://github.com/django/djangoproject.com/issues/997

Follow up to 1cdfe8d91215eefaa18c398069dd9c6879a9511d.
Backport of 36a2e9607e3069e875eedfd814d4473d9b6811cb from master
2020-06-03 11:44:51 +02:00
Carlton Gibson
c1dc423f10 [3.0.x] Added stub release notes for 3.0.8.
Backport of 7ec2658e1e24149f0f3244c08c361348f6ebc0e4 from master
2020-06-03 10:55:25 +02:00
Carlton Gibson
56b9f5b063 [3.0.x] Post-release version bump. 2020-06-03 10:30:08 +02:00
Carlton Gibson
44da7abda8 [3.0.x] Bumped version for 3.0.7 release. 3.0.7 2020-06-03 10:23:39 +02:00
Dan Palmer
84b2da5552 [3.0.x] Fixed CVE-2020-13254 -- Enforced cache key validation in memcached backends. 2020-06-03 09:33:20 +02:00
Jon Dufresne
1f2dd37f6f [3.0.x] Fixed CVE-2020-13596 -- Fixed potential XSS in admin ForeignKeyRawIdWidget. 2020-06-03 09:32:35 +02:00
Carlton Gibson
256d297101 [3.0.x] Added release date for 2.2.13 and 3.0.7.
Backport of 81dc710571b773557170cce9764fff83b6dfd8ae from master
2020-06-03 09:14:57 +02:00
David Smith
8734a02f5d [3.0.x] Updated link to Celery.
Backport of 06c8565a4650b359bdfa59f9707eaa0d1dfd7223 from master
2020-06-02 14:38:06 +02:00
Carlton Gibson
d22f67848c
[3.0.x] Refs #31485 -- Backported jQuery upgrade to 3.5.1. 2020-06-02 14:36:31 +02:00
Carlton Gibson
b9db041789 [3.0.x] Adjusted URL example in tutorial.
No need for the example to be ASP specific.

Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
Backport of 8c49c3f7257f14e071b619f90cd4d8cae6d04e74 from master
2020-06-02 12:27:43 +02:00
Jon Dufresne
caf7c4630d [3.0.x] Fixed #31643 -- Changed virtualenv doc references to Python 3 venv.
Backport of 9f4ceee90aaa2a6af8321417d79330f2fdc620ea from master
2020-06-02 11:55:57 +02:00
Chris May
9297a3e627 [3.0.x] Fixed typo in docs/ref/templates/language.txt.
Backport of ecaac9e42f497be04ddc72dfebb6e397ccca9517 from master
2020-06-01 20:52:56 +02:00
Carlton Gibson
2638627db4 [3.0.x] Fixed #31570 -- Corrected translation loading for apps providing territorial language variants with different plural equations.
Regression in e3e48b00127c09eafe6439d980a82fc5c591b673.

Thanks to Shai Berger for report, reproduce and suggested fix.

Backport of dd1ca50b096bf0351819aabc862e91a9797ddaca from master
2020-06-01 09:27:53 +02:00