Commit Graph

27779 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 96a3ea39ef from master
2020-07-20 07:15:14 +02:00
Adam Johnson 5bd7c18306 [3.0.x] Improved ManyToManyField.through docs.
Backport of e7fa8aff43 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 5ef6f62634 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 240cbb63bf 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 d08e6f55e3 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 d38c34119e 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 2c43840dfb 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 e9103402c0.

Backport of 52a0a03671 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 1d8256719e 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 060576b0ab 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 697e59d5cf 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 639142e24d 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 659a73bc0a 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 392036be29 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 b142bd4a1b 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 c2a835703f 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. 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 0f3aecf581 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 615e32162f 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 c95d063e77.
Backport of ec5aa2161d 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 d2c135da4c 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 2afa61e7d9 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 22ce5d0031.

Thanks Rodrigo Estevao for the report.

Backport of 2e8941b6f9 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 6bc9283751 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 69e0d9c553 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 a16080810b 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 3d664a158d 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 be7a295141.
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
40b0a58f5f because is_whitespace property
was added in sqlparse 0.2.2.
Backport of 4339f2aff2 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 4edad1ddf6.

Backport of b38d44229f 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 3a941230c8.

Thanks Tomasz Szymański for the report.
Backport of 78ad4b4b02 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 926148ef01 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 55556e51fb 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 25352dc019 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 2c82414914.

Backport of 229c9c6653 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 54975780ee 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 1cdfe8d912.
Backport of 36a2e9607e 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 7ec2658e1e 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. 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 81dc710571 from master
2020-06-03 09:14:57 +02:00
David Smith 8734a02f5d [3.0.x] Updated link to Celery.
Backport of 06c8565a46 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 8c49c3f725 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 9f4ceee90a 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 ecaac9e42f 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 e3e48b0012.

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

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