Tim Graham
cd4dc4c3f1
[3.2.x] Refs #26167 -- Added @skipUnlessDBFeature('supports_expression_indexes') to a test.
...
Failure observed on CockroachDB.
Backport of 76c0b32f826469320c59709d31e2f2126dd7c505 from main
2021-03-09 16:00:19 +01:00
Mariusz Felisiak
b129728834
[3.2.x] Updated link to Selenium webdrivers.
...
Backport of 98d3fd61026457a435ef5b7afce6b6e64e9f241d from main
2021-03-09 11:30:56 +01:00
Markus Holtermann
e078747290
[3.2.x] Updated Git branch "master" to "main".
...
This change follows a long discussion on django-develops:
https://groups.google.com/g/django-developers/c/tctDuKUGosc/
Backport of d9a266d657f66b8c4fa068408002a4e3709ee669 from main
2021-03-09 09:33:50 +01:00
Jacob Walls
3fd83c48db
[3.2.x] Fixed #32507 -- Added link to assertHTMLEqual() in assertInHTML() docs.
...
Backport of 286fb73b6962d197ed0cf041755fb724cfe08600 from master
2021-03-05 21:21:25 +01:00
Mariusz Felisiak
49970b5e4d
[3.2.x] Refs #32483 -- Doc'd caveat about using JSONField key transforms to booleans with QuerySet.values()/values_list() on SQLite.
...
Backport of c6b07627fcb5d1c8d2082714ef5adb63bee6cf4c from master
2021-03-04 11:31:00 +01:00
Mariusz Felisiak
cd7a5bf33d
[3.2.x] Fixed typo in docs/ref/contrib/postgres/fields.txt.
...
Backport of 05bbff82638731a6abfed2fe0ae06a4d429cb32f from master
2021-03-04 10:43:41 +01:00
Hasan Ramezani
44969681b8
[3.2.x] Corrected admin.E023 message in docs.
...
Backport of d1f89c9b9a9b44c4dbfd24fcb5f76f16e973c0a2 from master
2021-03-04 09:21:02 +01:00
GabbyPrecious
cafabd0859
[3.2.x] Refs #32412 -- Adjusted Contributing Guide start page.
...
* Added headers emphasising Work on the framework vs Join the community
sections, to raise the visibility of the community section.
* Added callouts to three main code/docs/translations areas, linking to
respective start pages.
* Moved some Writing code specific content from the start page to the
Writing code index. This clarifies the start page and adds content to the
previously empty Writing code index.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of ead9085f0872d5c1c670502df6dc0f69b422eaad from master
2021-03-03 15:41:10 +01:00
Mariusz Felisiak
d7e5590653
[3.2.x] Updated links to djangoproject.com/code.djangoproject.com repositories.
...
Backport of 2b1de3dd242b473cd084e7ff9b9b10d488dcabad from master
2021-03-03 09:07:11 +01:00
Jack Aitken
9f277c3a7c
[3.2.x] Fixed #32271 -- Improved consistency of docs CBV examples.
...
Co-Authored-By: Carles Pina i Estany <carles@pina.cat>
Backport of 5fd4f22d196fbe9913884259ddedad10e6156a44 from master
2021-03-02 09:01:57 +01:00
tim-mccurrach
7e6e822162
[3.2.x] Fixed #20423 -- Doc'd that DTL variable names may not be a number.
...
Backport of 7587139d35b630a19fdc55a5f3789475e5ed26c8 from master
2021-02-26 21:03:02 +01:00
Jacob Walls
230d5b16b2
[3.2.x] Fixed typos in assertQuerysetEqual() docs and 1.6 release notes.
...
Backport of 0c7e880e13b837dd76276c04ebdc338bb76d1379 from master
2021-02-26 09:11:57 +01:00
Camilo Nova
1c10a6cbce
[3.2.x] Fixed indentation in docs/topics/i18n/translation.txt.
...
Backport of f6f430d3ff9ca254826e9fcaa968ba02018c6c83 from master
2021-02-25 20:49:53 +01:00
Mariusz Felisiak
904a889ccc
[3.2.x] Added stub release notes for 3.1.8.
...
Backport of e0f82d7992ad7085dcf4ed096a6ad2e3ad89eaae from master
2021-02-25 20:49:18 +01:00
Markus Holtermann
76873b830c
[3.2.x] Updated links to DEPs.
...
Backport of 7cc6899d4176539e5d59a2e921b938904d3a8944 from master
2021-02-25 17:27:32 +01:00
Mariusz Felisiak
abca17c8e0
[3.2.x] Refs #31811 -- Corrected DiscoverRunner.setup_databases() signature.
...
Accidentally changed in 61a0ba43cfd4ff66f51a9d73dcd8ed6f6a6d9915.
Backport of af685b5f00a2a38ec596ff905d5f70455185b6d7 from master
2021-02-24 20:24:34 +01:00
Mariusz Felisiak
c963bbc9aa
[3.2.x] Refs #31811 -- Restored **kwargs to django.test.utils.setup_databases().
...
Accidentally removed in 61a0ba43cfd4ff66f51a9d73dcd8ed6f6a6d9915.
Backport of c8837322e8b4068441ffe5dd497ab8a323525d3a from master
2021-02-24 12:58:18 +01:00
Simon Charette
7a6ca01f4e
[3.2.x] Fixed #32478 -- Included nested columns referenced by subqueries in GROUP BY on aggregations.
...
Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.
Refs #31094 , #31150 .
Thanks Igor Pejic for the report.
Backport of 277eea8fcced7f04f3800617f189beb349a3212e from master
2021-02-24 10:11:37 +01:00
Hasan Ramezani
543171873f
[3.2.x] Fixed #32471 -- Doc'd the return value of EmailMessage.send().
...
Backport of b1af2cca3aba4cefc69c986d4de6cab6db524bf3 from master
2021-02-23 07:43:57 +01:00
Johannes Wilm
cf05f9f205
[3.2.x] Refs #4027 -- Added Model._state.adding to docs about copying model instances.
...
Backport of 0fd05df7b5690fb1b675e1b4d9c92bb22ff74360 from master
2021-02-22 11:52:52 +01:00
Nick Pope
eccf40a303
[3.2.x] Refs #16117 -- Made @action and @display decorators importable from django.contrib.gis.admin.
...
Backport of 8f02a78695a6c07bc5b05499e6e6cf96bc25320f from master
2021-02-22 10:13:14 +01:00
Carlton Gibson
06905243a3
[3.2.x] Added CVE-2021-23336 to security archive.
...
Backport of ab58f072502e86dfe21b2bd5cccdc5e94dce8d26 from master
2021-02-19 11:03:38 +01:00
Carlton Gibson
c238ec5e90
[3.2.x] Bumped version for 3.2 beta 1.
3.2b1
2021-02-19 09:35:45 +01:00
Nick Pope
be8237c7cc
[3.2.x] Fixed CVE-2021-23336 -- Fixed web cache poisoning via django.utils.http.parse_qsl().
2021-02-19 09:15:09 +01:00
Hasan Ramezani
0debc6ba5b
[3.2.x] Fixed #32455 -- Allowed right combining Q() with boolean expressions.
...
Backport of f2bef2b7bc6c817af0f5fa77e1052a1f5ce12f71 from master
2021-02-19 06:21:10 +01:00
Mariusz Felisiak
732cf4c5b4
[3.2.x] Refs #32455 -- Added tests for left combining an empty Q() with boolean expressions.
...
Backport of efce21497cc21140c5fe2b133064cd815c97b3f5 from master
2021-02-19 06:21:04 +01:00
starryrbs
0e2979e95d
[3.2.x] Fixed #32450 -- Fixed crash when ANDing/ORing an empty Q() with not pickleable Q().
...
Regression in bb0b6e526340e638522e093765e534df4e4393d2.
Backport of 466920f6d726eee90d5566e0a9948e92b33a122e from master
2021-02-18 22:06:36 +01:00
Nick Pope
6897da6096
[3.2.x] Added documentation extlink for bugs.python.org.
...
Backport of d02d60eb0f032c9395199fb73c6cd29ee9bb2646 from master
2021-02-17 14:25:54 +01:00
Hannes Ljungberg
69a585eb87
[3.2.x] Fixed #32453 -- Added introspection of unique constraint field ordering on SQLite.
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Backport of 4d99375b46ad03fa4b4795319973046f438328c8 from master
2021-02-17 12:18:18 +01:00
Harm Geerts
b89ce413f2
[3.2.x] Fixed #29052 -- Made test database creation preserve alias order and prefer the "default" database.
...
This fixes flushing test databases when two aliases point to the same
database.
Use a list() to store the test database aliases so the order remains
stable by following the order of the connections. Also, always use the
"default" database alias as the first alias to accommodate `migrate`.
Previously `migrate` could be executed on a secondary alias which
caused truncating the "default" database.
Backport of 06e5f7ae1639f1e275e7cc1076dc70ca3ebaa946 from master
2021-02-16 13:08:13 +01:00
Chris Jerdonek
65a620948c
[3.2.x] Fixed #32437 -- Fixed cleaning up ALLOWED_HOSTS in LiveServerTestCase on setUpClass() failure.
...
Backport of 694deff82f86e025561dfa724425f67e2ff7cbb7 from master
2021-02-12 11:53:37 +01:00
David Smith
bfc429d993
[3.2.x] Fixed #32438 -- Fixed typo in docs/topics/testing/tools.txt.
...
Backport of e412b288455dd3ea6f1d65c8ec5d01751e489976 from master
2021-02-12 09:21:07 +01:00
Adam Johnson
f2d955dbe4
[3.2.x] Documented an example custom context processor.
...
Backport of 0963f184abd96800b76b19a6a181e1b544c7fafe from master
2021-02-11 14:37:27 +01:00
Adam Johnson
2ce4f73241
[3.2.x] Improved pagination documentation
...
* Link to the topic guide
* Document that page() can raise PageNotAnInteger.
Backport of a57e91adeeef4fe97db3e589b20bf2a30c907e21 from master
2021-02-11 14:20:19 +01:00
Egidijus Macijauskas
aa1aed923b
[3.2.x] Fixed #32433 -- Added error message on QuerySet.delete() following distinct().
...
Backport of 6307c3f1a123f5975c73b231e8ac4f115fd72c0d from master
2021-02-11 09:09:59 +01:00
Egidijus Macijauskas
98ce39b5a3
[3.2.x] Refs #19102 -- Removed flaky test Ticket19102Tests.test_ticket_19102_distinct_on.
...
The subquery pushdown only happens because another table is involved in
filter. It's not the distinct usage that causes the pushdown.
The distinct('description').order_by('pk') expression is not valid
because SELECT DISTINCT ON must match initial ORDER BY expressions
which is not the case here.
Backport of 4e8ecf0cb6ea36c45edb9cb86f0d63224e08097e from master
2021-02-11 09:09:22 +01:00
Hasan Ramezani
dd14e639ad
[3.2.x] Fixed #32431 -- Reversed order of security issues history.
...
Backport of 17a5e2cff606305fd819a024cf9f450f90202a6f from master
2021-02-10 16:03:24 +01:00
Jordan Bae
9eed258283
[3.2.x] Fixed #32425 -- Fixed adding nullable field with default on MySQL.
...
Thanks Simon Charette for the review.
Backport of d4ac23bee1c84d8e4610350202ac068fc90f38c0 from master
2021-02-09 08:25:05 +01:00
Anil Khatri
bae685f267
[3.2.x] Fixed #32430 -- Doc'd base class-based views.
...
Backport of 6ee86a12ee29fcd4f3d7c9f1ad6de8cde4637b06 from master
2021-02-08 17:33:53 +01:00
Anil Khatri
20e0e47f25
[3.2.x] Fixed #32408 -- Doc'd django.views.generic.detail.BaseDetailView.
...
Backport of de4492fbb1e48f8b258baa182220d4247f345177 from master
2021-02-08 07:08:53 +01:00
Amankumar Singh
d192d751e1
[3.2.x] Fixed #32419 -- Clarified URLconf in example of serving media files.
...
Backport of 51637222b6eeed81d9ce6f5d24e22e249c605ba3 from master
2021-02-05 15:34:28 +01:00
Mikolaj Rybinski
d881a0ea3b
[3.2.x] Fixed #32420 -- Fixed detecting primary key values in deserialization when PK is also a FK.
...
Backport of 8e90560aa8868a42bb8eda6273595bf0932a6090 from master
2021-02-05 14:19:10 +01:00
Carlton Gibson
f490cde15d
[3.2.x] Corrected typo in advice to new contributors.
...
Backport of e48e78738e224a056df57b7cb08bd48ac0e54f60 from master
2021-02-04 16:02:08 +01:00
Mariusz Felisiak
ff25791d23
[3.2.x] Refs #32074 -- Fixed TextChoices/IntegerChoices crash on Python 3.10.
...
EnumMeta has a new keyword argument 'boundary' in Python 3.10. This
is a new mechanism that controls how out-of-range / invalid bits are
handled, see https://bugs.python.org/issue38250 .
Backport of 5d9b065d3f93de056588dfee6f1776294dd8bab2 from master
2021-02-04 10:51:41 +01:00
GabbyPrecious
cb680b6819
[3.2.x] Refs #32412 -- Adjusted link from tutorial to reference docs.
...
The writing code index page is a better location for a newer contributor to
land, than the specific patch guidelines subpage.
Backport of aa29c57beea7e8e570f8a597ea806ca3e2b3431d from master
2021-02-04 10:37:36 +01:00
GabbyPrecious
bbd1b3565b
[3.2.x] Refs #32412 -- Adjusted beginning of Advice for new contributors.
...
With the goal of guiding folks to the right destination:
* Improved wording of tutorial call-out.
* Added summary of page purpose.
* Added link to Writing code reference doc.
Backport of e733c9ac1746cedc78efabff340379f1c9ee47da from master
2021-02-04 10:37:15 +01:00
Dan Swain
afe34e7237
[3.2.x] Fixed typos in 3.2 release notes.
...
Backport of e17bdb953a72f1eae76a914a21ce4e83d3e3b608 from master
2021-02-04 09:56:58 +01:00
Hasan Ramezani
b36beec208
[3.2.x] Fixed #32332 -- Fixed loss of parent with non-numeric pk when saving child after parent.
...
Follow up to 519016e5f25d7c0a040015724f9920581551cab0.
Backport of 7cba92ec55a5d05450261f375830619870ca84fa from master
2021-02-04 07:08:20 +01:00
Mariusz Felisiak
7d65889345
[3.2.x] Fixed #32403 -- Fixed re-raising DatabaseErrors when using only 'postgres' database.
...
Thanks Kazantcev Andrey for the report.
Regression in f48f671223a20b161ca819cf7d6298e43b8ba5fe.
Backport of f131841c601b9d4884adcdb284b4213c2ad89231 from master
2021-02-02 21:35:35 +01:00
Brad Solomon
eab0b8b804
[3.2.x] Fixed typo in docs/ref/forms/widgets.txt.
...
Backport of f9cfd346f0222d86bfbac26ef5455806965bae6b from master
2021-02-01 12:05:22 +01:00