Marc Gibbons
4e1bb31b39
[5.0.x] Doc'd writing integration tests for the system check framework.
...
Backport of 8d9c0e4e244111ea3839434d8812c8573cfbf00e from main
2023-10-27 11:44:40 +02:00
Izzy Hyman
a71f611a9e
[5.0.x] Fixed typo in docs/ref/contrib/gis/geos.txt.
...
Backport of c42250a7039a5ace1b482b30c6a1359b748cae65 from main
2023-10-27 05:32:03 +02:00
Leo Suarez
89e539488a
[5.0.x] Fixed #15578 -- Stated the processing order of fixtures in the fixtures docs.
...
Also, added details about loading multiple fixtures and unified line wrapping
at 79 cols.
Co-Authored-By: Aniketh Babu <anikethbabu@gmail.com>
Co-Authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-Authored-By: Natalia Bidart <124304+nessita@users.noreply.github.com>
Backport of 334dc073b1d9c89692aa5b11d362fb1cceae7a4a from main
2023-10-26 21:51:40 -03:00
Mariusz Felisiak
415ef34c4c
[5.0.x] Added missing pycon directives in various docs.
...
Backport of 718b32c6918037cfc746d7867333d79a3c887a8c from main
2023-10-25 12:27:56 +02:00
Tim Bell
8b18e0bb3b
[5.0.x] Fixed #27403 -- Doc'd that QuerySet.prefetch_related() doesn't guarantee transactional consistency.
...
Added a note about the potential race condition in prefetch_related()
that could produce an inconsistent result, one that does not correspond
to any point in the database history.
Backport of ee104251c403fbac83b8475163ff2ac01c567d25 from main
2023-10-25 10:22:56 +02:00
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
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
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
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
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
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
sage
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
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
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
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
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
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
Mariusz Felisiak
2566f92544
[5.0.x] Fixed #34840 -- Avoided casting string base fields on PostgreSQL.
...
Thanks Alex Vandiver for the report.
Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
Backport of 779cd28acb1f7eb06f629c0ea4ded99b5ebb670a from main.
2023-09-22 06:03:19 +02:00
David Sanders
fb5dd118e9
[5.0.x] Refs #34808 -- Doc'd that aggregation functions on empty groups can return None.
...
Backport of 78b5c9075348aa12da2e024f6ece29d1d652dfdd from main
2023-09-21 13:17:32 -03:00
Paolo Melchiorre
7e4c1e8b3d
[5.0.x] Refs #31300 -- Added example to GeneratedField release notes.
...
Backport of 0b506bfe1ab9f1c38e439c77b3c3f81c8ac663ea from main
2023-09-20 09:01:41 +02:00
Mariusz Felisiak
ab5124c227
[5.0.x] Added updating the Django release process on Trac to release steps.
...
Backport of 7c1cf585e80114b6e531b40bd2954406d033afe3 from main
2023-09-19 08:25:33 -03:00
Mariusz Felisiak
1eeb84aa04
[5.0.x] Fixed typo in docs/releases/5.0.txt.
...
Backport of 909f8e4c24e5c0c2fcf3f6bab2f87c0735bcc832 from main
2023-09-19 09:27:58 +02:00
Natalia
fbfa1b669a
[5.0.x] Bumped django_next_version in docs config.
2023-09-18 11:28:22 -03:00
Natalia
613b7ba212
Made cosmetic edits to docs/releases/5.0.txt.
2023-09-18 10:21:25 -03:00
Natalia
a7aaba0f85
Removed empty sections from 5.0 release notes.
2023-09-18 09:51:35 -03:00
Natalia
3eb7051161
Updated man page for Django 5.0 alpha.
2023-09-18 09:25:34 -03:00
Clément Escolano
cac94dd8aa
Fixed #33651 -- Added support for prefetching GenericForeignKey.
...
Co-authored-by: revanthgss <revanthgss@almabase.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-09-18 13:23:21 +02:00
Mariusz Felisiak
190874eadd
Fixed #34560 -- Updated admin's jQuery to 3.7.1.
2023-09-18 08:54:44 +02:00
Ryanwalker277
225328efd9
Fixed #31558 -- Added support for boolean attribute on properties in ModelAdmin.list_display.
2023-09-16 20:54:26 +02:00
therealrinku
aebedb7bd1
Fixed typo in docs/howto/custom-file-storage.txt.
2023-09-16 07:03:10 +02:00
Mariusz Felisiak
88b5b7b8e5
Corrected QuerySet.prefetch_related() note about GenericRelation().
...
GenericRelation is a reverse generic relationship so it's always
homogeneous. Mentioning this as a restriction is confusing.
2023-09-16 06:57:38 +02:00
Sarah Abderemane
814e7bc220
Fixed #34832 -- Made admin's header content render in <header> tag.
...
Header tag was changed to <header> get the landmark banner for
accessibility.
2023-09-15 05:36:43 +02:00
Mariusz Felisiak
e2a3a896cf
Refs #15619 -- Removed deprecated annotation about logging out via GET requests.
...
Follow up to 6c57c08ae52f86df843fccb5a3c1c6c45a10a26f.
2023-09-14 19:49:06 +02:00
Natalia
691f70c477
Fixed #24561 -- Added support for callables on model fields' choices.
2023-09-14 10:15:33 -03:00
Michele Mazzucchi
5bfb3cbf49
Doc'd HttpResponse.cookies.
2023-09-14 11:21:47 +02:00
Sarah Abderemane
91e617c743
Fixed #34833 -- Made admin's main content render in <main> tag.
2023-09-14 05:41:31 +02:00
Nick Pope
f92e68c30a
Fixed #34822 -- Added support for serializing functions decorated with functools.lru_cache in migrations.
...
`@functools.cache` and `@functools.lru_cache` return an object of type
`functools._lru_cache_wrapper` which prevented the migrations serializer from
working. Simply using the existing `FunctionTypeSerializer` for this additional
type works as expected.
2023-09-13 15:57:18 -03:00
Nick Pope
c131949e3e
Refs #34822 -- Added tests for serializing decorated functions in migrations.
...
Functions decorated with a decorator that is properly wrapped, e.g. by
using `@functools.wraps`, are already supported.
2023-09-13 15:39:56 -03:00
Ben Lomax
74f7deec9e
Refs #31949 -- Made make_middleware_decorator to work with async functions.
2023-09-13 11:41:01 +02:00
Nick Pope
e15174983a
Renamed ChoicesMeta to ChoicesType.
...
This also uses enum.EnumType for Python 3.11+ as Python 3.11 renamed
EnumMeta to EnumType. While the former is still available as an alias
of the latter for now, let's prefer the canonical name for this.
Check out https://docs.python.org/3/library/enum.html#enum.EnumType
2023-09-12 11:51:01 +02:00