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
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
Fabian Braun
6db8e46e47
[5.0.x] Fixed #34857 -- Made calendar "Cancel" button in admin use color variables.
...
Backport of 34ca1d3ab45f8f3f3d5bb867e4d13ca663deaa89 from main
2023-09-21 13:47:11 +02: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
Mariusz Felisiak
b5b361ab3b
[5.0.x] Isolated test models for GeneratedFields.
...
Test regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.
Backport of 8af3ae4ad9ca475f2428fac950de8df56b575e6a from main
2023-09-19 08:10:03 +02:00
Natalia
eeeacc52a9
[5.0.x] Bumped version for 5.0 alpha 1 release.
5.0a1
2023-09-18 19:30:07 -03:00
Natalia
c3f890a580
[5.0.x] Updated source translation catalogs.
...
This work includes the updating of the translations catalog for JS files. The
catalog was generated with this command:
django-admin makemessages -l en --domain=djangojs -i views/templates/i18n_catalog.js
The `views/templates/i18n_catalog.js` file had to be ignored because otherwise
the command would fail as follows:
xgettext: warning: msgid '' is used without plural and with plural.
./views/templates/i18n_catalog.js:52: Here is the occurrence without plural.
./views/templates/i18n_catalog.js:60: Here is the occurrence with plural.
Workaround: If the msgid is a sentence, change the wording of the sentence; otherwise, use contexts for disambiguation.
CommandError: errors happened while running msguniq
/home/nessita/fellowship/django/django/conf/locale/djangojs.pot:22: context separator <EOT> within string
/home/nessita/fellowship/django/django/conf/locale/djangojs.pot:23: context separator <EOT> within string
msguniq: found 2 fatal errors
2023-09-18 18:36:18 -03: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
Paolo Melchiorre
2f1ab16be5
Fixed #34842 -- Fixed ModelAdmin.readonly_fields crash with GeneratedFields.
2023-09-16 20:13:02 +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
Paolo Melchiorre
68d769e691
Fixed #34838 -- Corrected output_field of resolved columns for GeneratedFields.
...
Thanks Simon Charette for the implementation idea.
2023-09-14 21:17:12 +02:00
Lemuel Sta Ana
969ecb8236
Fixed #34834 -- Added role="search" to the admin changelist search form.
2023-09-14 20:35:48 +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
Mariusz Felisiak
0e540fca13
Corrected logger in CsrfViewMiddlewareTestMixin.test_ensures_csrf_cookie_no_logging().
...
Logger was changed in 55fec16aafed30a9daa06d6ecdf8ca3ad361279e.
2023-09-13 13:49:01 +02:00
Ben Lomax
74f7deec9e
Refs #31949 -- Made make_middleware_decorator to work with async functions.
2023-09-13 11:41:01 +02:00