1
0
mirror of https://github.com/django/django.git synced 2025-01-15 12:52:31 +00:00

32211 Commits

Author SHA1 Message Date
Mariusz Felisiak
3361668ff4 [5.0.x] Added stub release notes and release date for 4.2.7, 4.1.13, and 3.2.23.
Backport of fdd1323b9c83e56184e0c992af8faf8d54327775 from main
2023-10-25 05:43:00 +02:00
Mariusz Felisiak
00805ff436 [5.0.x] Fixed #34923 -- Avoided initializing LEVEL_TAGS when importing django.contrib.messages.
Regression in b7fe36ad37fb18c4bc7932c0aec6ae4f299b9622.

Thanks James Gillard for the report.

Backport of 311718feb5f1fb9ff794bbac0cda48cfc3410de8 from main
2023-10-24 14:12:40 -03:00
Natalia
25fec8940b [5.0.x] Bumped version for 5.0 beta 1. 5.0b1 2023-10-23 15:41:31 -03:00
Nick Pope
cc5901fa8e [5.0.x] Fixed #34899 -- Added blank choice to forms' callable choices lazily.
Backport of 171f91d9ef5177850c2f12b26dd732785f6ac034 from main
2023-10-23 14:54:37 -03:00
Nick Pope
bbe90f3c00 [5.0.x] Refs #34899 -- Extracted Field.flatchoices to flatten_choices helper function.
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>

Backport of 74afcee234f8be989623ccc7c28b9fb97fb548f0 from main
2023-10-23 14:53:13 -03:00
Nick Pope
711c054722 [5.0.x] Refs #31262 -- Added __eq__() and __getitem__() to BaseChoiceIterator.
This makes it easier to work with lazy iterators used for callables,
etc. when extracting items or comparing to lists, e.g. during testing.

Also added `BaseChoiceIterator.__iter__()` to make it clear that
subclasses must implement this and added `__all__` to the module.

Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>

Backport of 07fa79ef2bb3e8cace7bd87b292c6c85230eed05 from main
2023-10-23 14:51:27 -03:00
David Sanders
08aa336af4 [5.0.x] Fixed #34903, Refs #34825 -- Made workers initialization respect empty set of used connections.
Thanks to David Smith for the investigation & patch.

Regression in 2128a73713735fb794ca6565fd5d7792293f5cfa.
Follow up to a5905b164dbf52e59fa646af9c3d523c0804d86a.

Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Backport of 68d0159b6dfce07f144045d56639c52066e8b90e from main
2023-10-23 05:42:39 +02:00
David Sanders
4dec7eded9 [5.0.x] Fixed #34921 -- Fixed crash of warning for unbound naive datetimes.
Backport of b5311ee23219cfb676e2e67667ecba1e5d363aa0 from main
2023-10-22 19:34:13 +02:00
Claire Pritchard
4979e83d08 [5.0.x] Fixed typo in docs/releases/4.2.txt.
Backport of 61cc0e6f2c5115415e70e0a7eddd59b7c2aed40d from main
2023-10-22 11:02:40 +02:00
Lance Goyke
9a5b84ba57 [5.0.x] Restructured writing documentation contributing guide.
This trims and clearly delineates the how to guide from the subsequent
explanation with additional subheadings.

These changes have been discussed with Daniele Procida
at the DjangoCon US 2023 sprints.

Backport of a680ac7d775ba1bdbbda03094a4a64596864421c from main
2023-10-21 16:56:16 +02:00
David Smith
d0c8b45d4a [5.0.x] Corrected note about using accents in writing documentation contributing guide.
Backport of 16115771020eaededb56fdfbcfec978e950b6a9a from main
2023-10-21 09:40:04 +02:00
Chris Frisina
26dddf3752 [5.0.x] Fixed #34912 -- Fixed size of back links and bookmarklet help in admindocs pages.
Backport of be8b25def45bda2e9d1b63e67a80362832bcf45d from main
2023-10-21 09:01:57 +02:00
laserhyena
bba963df50 [5.0.x] Fixed #34911 -- Corrected HTML heading levels on admindocs' main page.
Backport of 21382e2743d06efbf5623e7c9b6dccf2a325669b from main
2023-10-20 06:20:32 +02:00
ontowhee
31bdf67a9c [5.0.x] Fixed #34905 -- Corrected admin's main content element rendered in <main> tag.
Regression in 91e617c743b21a0ebad01f18623a8b31f6f58500.

Thanks Tom Carrick for the report.
Backport of 89d2ae257bfdbe6f32c4671d97bf572623992ace from main
2023-10-19 17:26:15 +02:00
Mariusz Felisiak
448510a94b [5.0.x] Refs #34900, Refs #34118 -- Updated assertion in test_skip_class_unless_db_feature() test on Python 3.12.1+.
Python 3.12.1+ no longer includes skipped tests in the number of
running tests. Check out:

https://github.com/python/cpython/issues/110890#issuecomment-1763458686
https://github.com/python/cpython/pull/106588
Backport of 20b7aac7ca60b0352d926340622e618bcbee54a8 from main
2023-10-16 06:28:13 +02:00
Simon Charette
4ccca9eedc [5.0.x] Fixed #34798 -- Fixed QuerySet.aggregate() crash when referencing expressions containing subqueries.
Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7,
complements e5c844d6f2a4ac6ae674d741b5f1fa2a688cedf4.

Refs #28477, #34551.

Thanks Haldun Komsuoglu for the report.

Backport of 3b4a571275d967512866012955eb0b3ae486d63c from main
2023-10-16 06:15:08 +02:00
Adam Johnson
12a19321b4 [5.0.x] Refs #34840 -- Improved release note describing index regression.
Backport of 73b2c63127297e214d3bfdc8d9a96837691fc2a0 from main
2023-10-15 10:27:41 +02:00
Mariusz Felisiak
c3cf518a80 [5.0.x] Refs #34840 -- Fixed test_validate_nullable_textfield_with_isnull_true() on databases that don's support table check constraints.
Thanks Tim Graham for the report.
Backport of 9fd3a0ffc8fb8e532b0d5717f99fb15aff175a6c from main
2023-10-12 20:02:02 +02:00
lufafajoshua
d4bbdf5337 [5.0.x] Fixed #34808 -- Doc'd aggregate function's default argument.
Backport of 8adc7c86ab85ed91e512bc49056e301cbe1715d0 from main
2023-10-11 16:10:30 -03:00
Mariana
0bbe6ca2ac [5.0.x] Fixed #12241 -- Preserved query strings when using "Save and continue/add another" in admin.
Co-authored-by: Grady Yu <gradyy@users.noreply.github.com>
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Co-authored-by: Matthew Newton <matthewn@berkeley.edu>

Backport of fc62e17778dad9eab9e507d90d85a33d415f64a7 from main
2023-10-11 12:46:10 +02:00
Mariusz Felisiak
bcc6a8ee88 [5.0.x] Refs #34882 -- Fixed GISFunctionsTests.test_asgeojson_option_0() test on Oracle.
This uses an example with the same precision for all databases.

Follow up to 96e7a752b6c44a84e18d82d37524c1df64b32e12.
Backport of 6e369f36f2def929525e524f621eead4b041d1cf from main
2023-10-11 12:45:44 +02:00
Natalia
9454d4feb1 [5.0.x] Reorganized tutorial's part 4 to better understand changes needed in URLConf.
Backport of d21ab70223dcbdc5a2603a88945147f2f780deee from main
2023-10-10 14:05:36 -03:00
Carlton Gibson
fa6e6f3113
[5.0.x] Refs #26029 -- Improved get_storage_class() deprecation warning with stacklevel=2.
Addition of the `stacklevel` argument shows the source of the
deprecated call, making updating the client code simpler.
2023-10-10 10:28:23 +02:00
sarahboyce
33ad36a8ec [5.0.x] Refs #34043 -- Clarified how to test UI changes.
Backport of e083f3082c71853a01bf149bda7fdbaf58d25f4d from main
2023-10-09 11:51:32 +02:00
Mariusz Felisiak
5aa4fb68ba [5.0.x] Added backticks to setuptools in docs.
Backport of 54b23b1835a8044c35754525dfcf2c3027d79aa8 from main
2023-10-09 09:56:26 +02:00
sag᠎e
1e9f66e8e0 [5.0.x] Added missing import in docs/ref/contrib/contenttypes.txt.
Backport of 958e4cfe42190539af9386e753d59cd487bd8847 from main
2023-10-07 06:59:24 +02:00
Mariusz Felisiak
9f8bf7aebe [5.0.x] Fixed #34889 -- Fixed get_prefetch_queryset() fallback in prefetch_one_level().
Thanks Matt Westcott for the report.

Regression in cac94dd8aa2fb49cd2e06b5b37cf039257284bb0.
Backport of 296b75a3c0309a936a6c07d8f711f722e3b96e63 from main
2023-10-06 20:19:59 +02:00
ume
d5b093a2c5 [5.0.x] Refs #32275 -- Added scrypt password hasher to PASSWORD_HASHERS setting docs.
Backport of 90c75dc4f37bee19b7c3790519d187e38e293800 from main
2023-10-06 09:55:44 +02:00
Denis Rouzaud
df3f97a7d6 [5.0.x] Fixed #34882 -- Fixed no options in AsGeoJSON() for geometries in non-default CRS.
Backport of 96e7a752b6c44a84e18d82d37524c1df64b32e12 from main
2023-10-06 05:27:04 +02:00
David Sanders
0e34ac8981 [5.0.x] Refs #31435 -- Doc'd potential infinite recursion when accessing model fields in __init__.
Backport of e47298aec4fa04416e7082331fbd44bd9f2662aa from main
2023-10-05 14:33:24 -03:00
pieterck
72a2044b40 [5.0.x] Fixed #34759 -- Confirmed support for SpatiaLite 5.1.
Thanks The Epic Dev for helping with tests.

Backport of 0989cf13e70f52d5b241aa176eb74a680a282d09 from main.
2023-10-05 18:15:47 +02:00
Mariusz Felisiak
6e7c8cc42e [5.0.x] Refs #22936 -- Doc'd Lookup.prepare_rhs.
Backport of 91cb2d0b487acc56d886612a7251b9ba555d71b4 from main
2023-10-05 15:26:56 +02:00
Simon Charette
458bc9e768 [5.0.x] Refs #33482 -- Fixed QuerySet selecting and filtering againts Exists() with empty queryset.
Thanks Tobias Bengfort for the report.
Backport of ea596a52d9f905596cc5335930c8f2ac4511204c from main
2023-10-04 21:32:35 +02:00
Mariusz Felisiak
d9ab9dbea6 [5.0.x] Corrected wrap_socket() reference in docs/ref/settings.txt.
Backport of f9cdecfb0de40698eb2ce44c04068bb091fa8998 from main
2023-10-04 19:53:56 +02:00
Natalia
bc2d12637e [5.0.x] Added stub release notes for 4.2.7.
Backport of 034457941abf33b194cb145443575bf7fb454faf from main
2023-10-04 13:23:31 -03:00
Natalia
3db945a6b3 [5.0.x] Added CVE-2023-43665 to security archive.
Backport of 4e790271e3e65c9ad037b347a34fa95e11982228 from main
2023-10-04 13:13:06 -03:00
Natalia
8124c42601 [5.0.x] Fixed CVE-2023-43665 -- Mitigated potential DoS in django.utils.text.Truncator when truncating HTML text.
Thanks Wenchao Li of Alibaba Group for the report.
2023-10-04 09:38:26 -03:00
Mariusz Felisiak
5c0df9953b [5.0.x] Used Node.js 20 for GitHub actions.
Backport of 54d9d26ebfc90711430a79219d6547141ce1717f from main
2023-10-03 13:43:40 +02:00
faishalmanzar
25a614639f [5.0.x] Fixed #32602 -- Clarified wording of TestCase class.
Backport of f4e72e6523e6968d9628dfbff914ab57dbf19e6b from main
2023-10-02 11:49:00 +02:00
Dan Jacob
e60fe3bb05 [5.0.x] Fixed #34878 -- Fixed autoreloader crash when FORM_RENDERER is set to TemplatesSetting.
Regression in 439242c5943e16dd5a3a68fadac76e5e723eb323.

Backport of fe835c2355072fc2b7a0fbbc57d05477c7ee6ce9 from main
2023-09-29 06:36:59 +02:00
Paolo Melchiorre
0f9d07398d [5.0.x] Fixed #34877 -- Fixed migrations crash when adding GeneratedField with output_field with params.
Backport of e7e8eb44a30bcab004a582760752b5eb3fcd6e91 from main
2023-09-28 08:12:39 +02:00
Natalia
0ca421c5aa [5.0.x] Added stub release notes and release date for 4.2.6, 4.1.12, and 3.2.22.
Backport of 5e4b75b78a7a84bc30170c2b8e7434525e745c1b from main
2023-09-27 14:26:21 -03:00
Mariusz Felisiak
33ca9f91c2 [5.0.x] Added warning about flatpages and untrusted users.
Backport of 571bab98879578b6ef54ee654ead06736855767d from main
2023-09-27 19:09:38 +02:00
David Sanders
bc6d71d4de [5.0.x] Fixed #34825 -- Avoided setting unused connections when initializing parallel workers.
Backport of a5905b164dbf52e59fa646af9c3d523c0804d86a from main
2023-09-25 11:10:17 +02:00
David Sanders
4910920869 [5.0.x] Fixed #34849 -- Avoided raising RuntimeWarning about import-time queries when apps are reinitialized with test tools.
Regression in fbd16438f46bc2128926958ad24331da5d1b406f.

Backport of 4f2ae0644de34791b84b7beb11a966ce4bc48fb6 from main
2023-09-25 09:14:05 +02:00
Paolo Melchiorre
81663cc4ca [5.0.x] Fixed #34861 -- Fixed crash when adding GeneratedField with some expressions.
Co-authored-by: Simon Charette <charette.s@gmail.com>

Backport of 574ee4023e15cfb195833edfbaed353f8021c62f from main
2023-09-22 21:37:01 +02:00
Arian
7683c86351 [5.0.x] Fixed #34823 -- Fixed assertTemplateUsed() context manager crash on unnamed templates.
Backport of 51d703a27fee518491adee1e07e2b857a90b2c8d from main
2023-09-22 11:46:47 +02:00
toan
dcd3a0316b [5.0.x] Fixed #34858 -- Corrected resolving output_field for PositiveIntegerField.
Regression in 40b8a6174f001a310aa33f7880db0efeeb04d4c4.

Backport of 4de31ec680df062e5964b630f1b881ead5004e15 from main
2023-09-22 10:09:19 +02:00
Natalia
88992c5ac6 [5.0.x] Fixed #34848 -- Ignored i18n_catalog.js file when building Django's translations catalog.
Backport of d7972436639bacada0f94d3b9818446343af59ad from main
2023-09-22 08:55:11 +02:00
Tim Graham
41d82fda2a [5.0.x] Fixed JSONField's test_deep_distinct for DatabaseFeatures.nulls_order_largest=False.
Failure observed on CockroachDB.
Backport of b0788a0918d0e12bc8878581d99adc3a79799f94 from main
2023-09-22 06:26:23 +02:00