Simon Willison
ccb830e21a
[4.1.x] Fixed #34109 -- Updated instructions for running with Uvicorn.
...
Co-authored-by: Paolo Melchiorre <paolo@melchiorre.org>
Backport of 022a864a5d1de28b853f009566a24be251e90d96 from main
2022-10-26 11:54:52 +02:00
Smile
6ddb5aef98
[4.1.x] Improved "rebase" example for upstream changes in working with Git docs.
...
Backport of 83cdcac35535ef122f687f5dcc5f8272dae7b3f0 from main
2022-10-24 10:04:56 +02:00
Smile
72e74e46af
[4.1.x] Corrected curl call in working with Git docs.
...
Backport of 5ec64fa481892747ee5ce7ec13584cc4fe53b857 from main
2022-10-21 16:13:02 +01:00
Ryan Cheley
d2c52fc727
[4.1.x] Fixed typo in docs/ref/models/querysets.txt.
...
Backport of 38936f6a0cecfdfbfc30009a1f0a725b770f0854 from main
2022-10-21 16:03:14 +01:00
Diane DeMers Chen
2611ecd5d9
[4.1.x] Updated UTC uses to datetime.timezone.utc in docs.
...
Backport of a16132a9c4b32f9580cdda98a2711ae7261c2576 from main
2022-10-20 15:53:59 -07:00
Carlton Gibson
84814412a0
[4.1.x] Fixed #34085 -- Made management commands don't use black for non-Python files.
...
Bug in d113b5a837f726d1c638d76c4e88445e6cd59fd5.
Co-authored-by: programmylife <acmshar@gmail.com>
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of 5c2c7277d4554db34c585477b269bb1acfcbbe56 from main.
2022-10-20 14:38:40 -07:00
Alan D. Snow
202f5ae96a
[4.1.x] Updated example of creating GEOSGeometry from WKB to use memoryview.
...
Backport of da2621c3dfef934000c479750e0276d992025542 from main
2022-10-13 13:22:15 +02:00
Mariusz Felisiak
f72ba56af0
[4.1.x] Refs #34059 -- Doc'd lack of support for validation of constraints with JSONFields.
...
Thanks Dan LaManna for the report.
Backport of 004f985b918d5ea36fbed9b050459dd22edaf396 from main
2022-10-12 11:51:26 +02:00
Ralph Reid
950a84ce42
[4.1.x] Fixed #25996 -- Revised performance section in URLs topic docs.
...
Backport of d3579ca1124a163cad760558e8d138984e7a10b4 from main
2022-10-10 08:29:25 +02:00
J.V. Zammit
d959d66fa9
[4.1.x] Fixed #33797 -- Prioritized cached database backend for cached sessions in docs.
...
Co-authored-by: Adam Johnson <me@adamj.eu>
Backport of fa9ac16c1345a7fb6ad500c84961a954529ba2b9 from main
2022-10-07 09:40:04 +02:00
Mariusz Felisiak
735a610139
[4.1.x] Removed note about "0" IP address from tutorial.
...
Tutorial should offer only minimum, necessary, explanation.
Backport of c583418e3ec2a7f2997f739a51ae07291c18070e from main
2022-10-04 11:51:46 +02:00
Carlton Gibson
e9a24a15f2
[4.1.x] Added CVE-2022-36359 to security archive.
...
Backport of 93d4c9ea1de24eb391cb2b3561b6703fd46374df from main
2022-10-04 10:12:35 +02:00
Carlton Gibson
324d4fcbe1
[4.1.x] Added stub release notes for 4.1.3 release.
...
Backport of 7a089273236cf79a6c8a3db7a622fb89872ebe37 from main
2022-10-04 09:49:47 +02:00
Adam Johnson
9d656ea51d
[4.1.x] Fixed CVE-2022-41323 -- Prevented locales being interpreted as regular expressions.
...
Thanks to Benjamin Balder Bach for the report.
2022-10-04 09:12:42 +02:00
Mariusz Felisiak
7843c43c49
[4.1.x] Refs #32987 -- Relaxed system check for template tag modules with the same name by turning into a warning.
...
Thanks Claude Paroz for the report.
Regression in 004b4620f6f4ad87261e149898940f2dcd5757ef.
Backport of f71b0cf769d9ac582ee3d1a8c33d73dad3a770da from main
2022-10-03 10:52:47 +02:00
David Sanders
f78314875f
[4.1.x] Clarified how to reference RelatedObjectDoesNotExist exceptions.
...
Backport of da02cbd1effc951b14c981925d0e26a39566649e from main
2022-10-01 16:43:11 +02:00
Mariusz Felisiak
7a1675806a
[4.1.x] Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers."
...
This reverts 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 and adds
two regression tests:
- test_related_manager_refresh(), and
- test_create_copy_with_m2m().
Thanks joeli for the report.
Backport of 5e0aa362d91d000984995ce374c2d7547d8d107f from main
2022-09-30 18:19:36 +02:00
Antoine Lorence
ecf6506f44
[4.1.x] Fixed #34062 -- Updated View.http_method_not_allowed() to support async.
...
As with the options() methods, wrap the response in a coroutine if
the view is async.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of 9b0c9821ed4dd9920cc7c5e7b657720d91a89bdc from main
2022-09-29 16:29:34 +02:00
Mariusz Felisiak
97353bc64b
[4.1.x] Fixed #34058 -- Changed sequence types when altering pre-Django 4.1 auto fields on PostgreSQL.
...
Thanks Anders Kaseorg for the report.
Thanks Florian Apolloner for pair programming.
Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6.
Backport of 19e6efa50b603af325e7f62058364f278596758f from main
2022-09-29 13:20:55 +02:00
Chris Wedgwood
7607fc8990
[4.1.x] Fixed #33026 -- Mentioned RequestFactory in testing tools docs.
...
Backport of 468d06109778e3656229ac28c9019ea7246f9b79 from main
2022-09-29 06:00:56 +02:00
Adam Johnson
b826b38847
[4.1.x] Refs #34010 -- Made --debug-mode work for parallel tests using spawn.
...
Bug in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc.
Thanks Kevin Renskers for the report.
Backport of 0f5b11eca0ba199501941fa244b276aaa10353c8 from main
2022-09-28 20:40:23 +02:00
Adam Johnson
5630a6ca29
[4.1.x] Fixed #34010 -- Made parallel tests using spawn set up Django.
...
Bug in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc.
Thanks Kevin Renskers for the report.
Backport of 4a910f3de35338df7d4fcd8b7729fd1e31edaad0 from main
2022-09-28 20:40:12 +02:00
David Sanders
33d9247c8b
[4.1.x] Fixed #34025 -- Fixed selecting ModelAdmin.autocomplete_fields after adding/changing related instances via popups.
...
Regression in c72f6f36c13a21f6db3d4f85d2d3cec87bad45e6.
Thanks Alexandre da Silva for the report.
Backport of 9976f3d4b80cfb2e6f4c998438622b78eb1ac53e from main
2022-09-28 12:54:48 +02:00
Mariusz Felisiak
4f7fc378a1
[4.1.x] Changed note about update_fields and pre_save() to admonition.
...
Follow up to bf47c719719d0e190a99fa2e7f959d5bbb7caf8a.
Backport of 5d36a8266c7d5d1994d7a7eeb4016f80d9cb0401 from main
2022-09-28 09:27:14 +02:00
sarahboyce
ba4141b8bc
[4.1.x] Doc'd when pre_save() is called with Model.save()'s update_fields.
...
Backport of bf47c719719d0e190a99fa2e7f959d5bbb7caf8a from main
2022-09-27 14:11:04 +02:00
Carlton Gibson
fba7962bac
[4.1.x] Set date and added stub notes for 4.1.2, 4.0.8, and 3.2.16 releases.
...
Backport of c2bc71b635e3ca637b6920f30fb3dcc92037cee2 and
f08651c06cb5fe5a6181354e053bf82fe8d68f16 from main.
2022-09-27 10:11:25 +02:00
Jacob Walls
e151df24ae
[4.1.x] Fixed typo in docs/releases/3.2.1.txt.
...
Backport of cfe3008123ed7c9e3f3a4d51d4a22f9d96634e33 from main
2022-09-19 05:19:45 +02:00
Alexander Kerkum
2d20386b41
[4.1.x] Fixed #34016 -- Fixed QuerySet.values()/values_list() crash on ArrayAgg() and JSONBAgg().
...
Regression in e06dc4571ea9fd5723c8029959b95808be9f8812.
Backport of f88fc72da4eb76f2d464edb4874ef6046f8a8658 from main
2022-09-18 07:39:47 +02:00
Ritik Soni
0859093f7c
[4.1.x] Fixed #34017 -- Doc'd that Argon2id variant is used by Argon2PasswordHasher.
...
Backport of c11336cd990e155371a5185cf3bd6942cad8d9da from main
2022-09-17 09:49:34 +02:00
DevilsAutumn
160d0aacb8
[4.1.x] Fixed #34019 -- Removed obsolete references to "model design considerations" note.
...
Backport of 6b0bbaf453b7286bddf9c47a9dd75ac2acdfd617 from main
2022-09-17 08:34:21 +02:00
Ferran Jovell
5c4269197c
[4.1.x] Fixed #34018 -- Fixed typo in docs/ref/contrib/flatpages.txt.
...
Backport of 6619baab9b02e9f98598993e14cfc2b462b3a710 from main
2022-09-16 16:33:10 +02:00
Pamela Fox
05ace24d82
[4.1.x] Described Article-Reporter relationship in many-to-one topic.
...
Backport of 8e93fc561e4ead282abe2a12bd6ac393c9d308be from main
2022-09-15 10:49:23 +02:00
David Sanders
be5e3b46f7
[4.1.x] Fixed #33996 -- Fixed CheckConstraint validation on NULL values.
...
Bug in 667105877e6723c6985399803a364848891513cc.
Thanks James Beith for the report.
Backport of e14d08cd894e9d91cb5d9f44ba7532c1a223f458 from main
2022-09-13 14:06:46 +02:00
Dhanush
148d60de74
[4.1.x] Corrected example of redundant all() in docs.
...
Backport of 6df9398cce063874ae4d59db126d4adacb0fa8d3 from main
2022-09-09 13:34:44 +02:00
Simon Charette
e0f14d8389
[4.1.x] Fixed #33992 -- Fixed queryset crash when aggregating over a group containing Exists.
...
A more in-depth solution is likely to make sure that we always GROUP BY
selected annotations or revisit how we use Query.exists() in the Exists
expression but that requires extra work that isn't suitable for a
backport.
Regression in e5a92d400acb4ca6a8e1375d1ab8121f2c7220be.
Thanks Fernando Flores Villaça for the report.
Backport of 32536b1324e98768dd892980408a8c6b26c23fd9 from main
2022-09-08 08:13:15 +02:00
James Beith
7ba9a44831
[4.1.x] Fixed #33982 -- Fixed migrations crash when adding model with ExclusionConstraint.
...
Regression in 0e656c02fe945389246f0c08f51c6db4a0849bd2.
Backport of 19e838daa8872ee29fbea0bc471c2a6443f26835 from main
2022-09-07 09:17:23 +02:00
Mariusz Felisiak
4987ce3350
[4.1.x] Added stub release notes for 4.1.2.
...
Backport of 604fadde11966c5fdfe5a236a7a3963ee868f764 from main
2022-09-05 06:09:35 +02:00
Mariusz Felisiak
31d8076c30
[4.1.x] Updated man page for Django 4.1.1.
2022-09-05 05:32:23 +02:00
Mariusz Felisiak
95c5557032
[4.1.x] Added release date for 4.1.1.
...
Backport of aed92f686d362b731c74a7840085d2e6714e5ef5 from main
2022-09-05 05:22:07 +02:00
Mariusz Felisiak
f34655d756
[4.1.x] Corrected heading level of "Registering and fetching lookups" section in docs.
...
Backport of 753602d0c65de4767310bfe4957e489eb94c6517 from main.
2022-09-04 14:36:54 +02:00
Mariusz Felisiak
a1083805ac
[4.1.x] Fixed #33955 , Fixed #33971 -- Reverted "Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs."
...
This reverts commit 7f3cfaa12b28d15c0ca78bb692bfd6e59d17bff1.
Thanks Tom Carrick and Greg Kaleka for reports.
Backport of 974942a75039ba43e618f6a5ff95e08b5d5176fd from main
2022-09-01 21:10:43 +02:00
Mariusz Felisiak
02876534ab
[4.1.x] Reverted "Fixed #30711 -- Doc'd django.contrib.postgres.fields.hstore.KeyTransform()."
...
This reverts commit 7faf25d682b8e8f4fd2006eb7dfc71ed2a2193b7. The same
can be achieved with F() so there is no need to expose an extra API.
Backport of cb06f5ef8c80fc6a610db0fc36fb9dc7c625335a from main
2022-08-31 22:13:54 +02:00
Alex Morega
27ad94ab3b
[4.1.x] Fixed #33965 -- Improved file-like object example of ImageField in docs.
...
This uses a valid image.
Backport of 838cc0f449f96c157cb44eb91984a2753edc7f42 from main
2022-08-31 13:17:46 +02:00
Iván Camilo Triviño López
29fac6b616
[4.1.x] Fixed #33958 -- Added imports to examples in "Expressions can reference transforms" section.
...
Backport of 411a6ec93a9b21e5ed1e9fc05b34f021288cd10c from main
2022-08-30 06:06:03 +02:00
Ilia Peterov
e992703e07
[4.1.x] Improved example of index on SearchVector in full text search docs.
...
Backport of 0010721e892b470e90878f6128b490f52ebac8c4 from main
2022-08-29 19:28:57 +02:00
Mariusz Felisiak
e98869a8a8
[4.1.x] Fixed #33960 -- Fixed migrations crash on SQLite < 3.26.
...
Regression in 0b95a96ee10d3e12aef01d449467bcf4641286b4.
Thanks Aristotelis Mikropoulos for the report.
Backport of 4483a9b12f295908e68b82d6599f460de943444f from main
2022-08-29 09:56:12 +02:00
David Wobrock
fca055315e
[4.1.x] Fixed #33952 -- Reallowed creating reverse foreign key managers on unsaved instances.
...
Thanks Claude Paroz for the report.
Regression in 7ba6ebe9149ae38257d70100e8bfbfd0da189862.
Backport of 806e9e2d0dcf8f58e376fb7e2a8b9771e2a9ce16 from main
2022-08-27 15:36:13 +02:00
Mariusz Felisiak
0890719402
[4.1.x] Refs #30511 -- Updated docs about auto-incrementing primary keys on PostgreSQL.
...
Follow up to 2eea361eff58dd98c409c5227064b901f41bd0d6.
Backport of 081871bc20cc8b28481109b8dcadc321e177e6be from main
2022-08-26 21:44:24 +02:00
Iuri de Silvio
7d5ccbbe1a
[4.1.x] Fixed #33953 -- Reverted "Fixed #33201 -- Made RenameModel operation a noop for models with db_table."
...
Regression in afeafd6036616bac8263d762c1610f22241c0187.
This reverts afeafd6036616bac8263d762c1610f22241c0187.
Thanks Timothy Thomas for the report.
Backport of 166a3b32632c141541d1c3f0eff18e1d8b389404 from main
2022-08-26 07:14:54 +02:00
Simon Charette
c9ebd5b7aa
[4.1.x] Fixed #33938 -- Fixed migration crash for m2m with a through model in another app.
...
Regression in aa4acc164d1247c0de515c959f7b09648b57dc42.
Thanks bryangeplant for the report.
Backport of 71902e0d9f93670c4f93ff9d66095b0e571be74b from main
2022-08-25 10:32:48 +02:00