Aarni Koskela
6b32506739
Fixes #36215 -- Included unpacking generalization notes in coding style guide (PEP-448).
2025-03-31 22:43:13 -03:00
Aarni Koskela
c972af69e2
Refs #28909 -- Simplified code using unpacking generalizations.
2025-03-31 22:43:13 -03:00
Anthony Joseph
6888375c53
Fixed #22977 -- Added system check for clashing managers and reverse related fields.
...
With thanks to Konrad Świat, Loïc Bistuer, Russell Keith-Magee,
and Mariusz Felisiak.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2025-03-31 22:20:43 +02:00
Clifford Gama
9d5d0e8135
Clarified pre_delete and post_delete's origin attributes.
2025-03-31 16:10:44 +02:00
Sarah Boyce
cb27e5b9c0
Updated translations from Transifex.
...
Forwardport of cc31b389a11559396fc039511c0dc567d9ade469 from stable/5.2.x.
2025-03-31 16:06:56 +02:00
Song Junho
126417be43
Fixed #36265 -- Added support for serialization of ZoneInfo instances in migrations.
2025-03-31 13:44:54 +02:00
Mariusz Felisiak
02a5cbfe76
Refs #36055 -- Prevented overlap of object-tools buttons and page header in the admin on small screens.
...
Visual regression in b1324a680add78de24c763911d0eefa19b9263bc.
2025-03-31 09:15:58 +02:00
Mariusz Felisiak
281910ff8e
Fixed warnings per flake8 7.2.0.
...
https://github.com/PyCQA/flake8/releases/tag/7.2.0
2025-03-30 17:54:15 +02:00
saJaeHyukc
c1a4fccf53
Fixed #36239 -- Fixed a crash in ManyToManyField.through_fields check when to model is invalid.
...
Signed-off-by: saJaeHyukc <wogur981208@gmail.com>
2025-03-28 12:37:57 +01:00
Mariusz Felisiak
a0f50c2a48
Refs #34619 -- Fixed labels width in FilteredSelectMultiple in the admin.
...
Visual regression in 857b1048d53ebf5fc5581c110e85c212b81ca83a.
2025-03-28 09:53:02 +01:00
Carlton Gibson
5df512e53a
Simplified Intersphinx configuration example.
...
docs.djangoproject.com had been updated to serve the object.inv file
from the default location, so the second tuple element can be None
(the "default" value).
2025-03-28 09:36:13 +01:00
Carlton Gibson
6e54e20cc3
Doc'd how to use Intersphinx in the reusable apps tutorial.
2025-03-27 17:35:12 +01:00
antoliny0919
849f8307a5
Fixed #34917 -- Underlined links in the main content area of the admin.
2025-03-27 13:27:33 +01:00
Khudyakov Artem
9aabe7eae3
Fixed #35440 -- Simplified parse_header_parameters by leveraging stdlid's Message.
...
The `parse_header_parameters` function historically used Python's `cgi`
module (now deprecated). In 34e2148fc725e7200050f74130d7523e3cd8507a,
the logic was inlined to work around this deprecation ( #33173 ). Later,
in d4d5427571b4bf3a21c902276c2a00215c2a37cc, the header parsing logic
was further cleaned up to align with `multipartparser.py` (#33697 ).
This change takes it a step further by replacing the copied `cgi` logic with
Python's `email.message.Message` API for a more robust and maintainable header
parsing implementation.
Thanks to Raphael Gaschignard for testing, and to Adam Johnson and Shai
Berger for reviews.
Co-authored-by: Ben Cail <bcail@crossway.org>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-03-27 08:57:03 -03:00
Mariusz Felisiak
0d92428d77
Refs #34619 -- Corrected selector description in the admin.
2025-03-26 21:59:32 +01:00
Clifford Gama
d5c19f9b32
Fixed #34819 -- Made GenericForeignKey prefetching use matching pk representations.
...
Ensured that rel_obj_attr and instance_attr return matching (pk, cls) tuples
in GenericForeignKey.get_prefetch_queryset(), preventing mismatches when
prefetching related objects where pk and get_prep_value() differ. Using
value_to_string() also makes this code compatible with composite primary keys.
2025-03-26 09:55:38 +01:00
Simon Charette
7d9aab8da0
Refs #36260 -- Moved _is_pk_set checks into _prepare_for_bulk_create().
...
To avoid looping over objs twice.
2025-03-26 09:55:09 +01:00
Dmitry Shachnev
77b4ecbd53
Fixed #36260 -- Made bulk_create() work with DB-generated primary keys.
...
Co-authored-by: Simon Charette <charette.s@gmail.com>
2025-03-26 09:55:09 +01:00
Sarah Boyce
c75fbe8430
Added stub release notes and release date for 5.1.8 and 5.0.14.
2025-03-26 09:00:27 +01:00
Giannis Terzopoulos
a39c28706a
Fixed #35529 -- Added support for positional arguments in querystring template tag.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-03-25 12:23:41 -03:00
Jason Cameron
9608678704
Fixed #36262 -- Made GeneratedField.db_persist a required key-word argument.
2025-03-25 12:50:24 +01:00
wookkl
334677ad57
Fixed #35452 -- Deprecated orphans being more than or equal to page_size in pagination.
2025-03-25 12:04:13 +01:00
Tim Graham
fecca298a2
Fixed #36276 -- Omitted size=None from ArrayField.deconstruct().
2025-03-25 12:02:14 +01:00
YogyaChugh
7164f08047
Fixed #36271 -- Raised TemplateSyntaxError when using a relative template path with an unknown origin.
2025-03-24 17:05:58 +01:00
Natalia
0b4f2d8d39
Fixed #36268 -- Added leading ?
in every querystring template tag result.
...
Thanks Sarah Boyce for the report.
2025-03-24 11:53:42 -03:00
Natalia
b1c1fd33ed
Improved and reorganized querystring template tag docstring and ref docs.
2025-03-24 11:53:42 -03:00
Natalia
639eafbd27
Ensured consistency in naming in template_tests/syntax_tests/test_querystring.py.
2025-03-24 11:53:42 -03:00
dr-rompecabezas
fb65c52040
Updated ogrinfo output in GIS tutorial.
2025-03-23 20:40:27 +01:00
mguegnol
e2b9a17913
Fixed typo in docs/topics/signals.txt.
2025-03-23 20:02:42 +01:00
Sarah Boyce
922c1c732a
Documented the updating of translation catalogs in post-release tasks.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-03-21 14:54:29 +01:00
Clifford Gama
6a2c296e70
Fixed #36095 -- Introduced lazy references in "Models across files" section.
2025-03-21 14:09:10 +01:00
Clifford Gama
eb4ea9c3ef
Refs #36095 -- Doc'd that ManyToManyField.through supports lazy relationships.
2025-03-21 14:09:10 +01:00
Johanan Oppong Amoateng
5adadf6e8c
Fixed #36266 -- Renamed HIDE_PRODUCTION_WARNING environment variable to DJANGO_RUNSERVER_HIDE_WARNING.
2025-03-21 10:19:36 +01:00
Mike Edmunds
e295033144
Fixed #36138 -- Changed ADMINS and MANAGERS settings to lists of strings.
...
Previously, the ADMINS and MANAGERS settings were lists of (name, address)
tuples (where the name had been unused). Deprecated use of tuples.
Updated settings value sanity checks, and changed from ValueError to
ImproperlyConfigured.
2025-03-21 10:17:57 +01:00
Mariusz Felisiak
aed303aff5
Updated source translation catalogs.
...
Forwardport of d2b1ec551567c208abfdd21b27ff6d08ae1a6371 from stable/5.2.x
2025-03-19 22:27:10 +01:00
Ahmed Nassar
ec7044c706
Fixed #36000 -- Deprecated HTTP as the default protocol in urlize and urlizetrunc.
2025-03-19 14:28:42 +01:00
Sarah Boyce
ed1e7c02c9
Fixed #36097 -- Replaced GIS functions table with section headers for better readability and navigation.
2025-03-19 09:16:32 -03:00
Baptiste Mispelon
08dae5bd46
Refs #35980 -- Updated internal docs for artifact upload and release via admin site.
...
Recent updates to djangoproject.com extended the `Release` model to
support uploading and storing artifacts and checksum files. This branch
updates the "How to release Django" docs to match the new release flow.
2025-03-18 22:15:26 -03:00
Carlton Gibson
8713e4ae96
Fixed #33497 -- Doc'd that persistent DB connections should be disabled in ASGI and async modes.
2025-03-18 21:26:57 -03:00
Clifford Gama
304e9f3d6a
Fixed #36202 -- Added examples of JSONField __contains and __contained_by lookups with nested arrays to docs.
2025-03-18 21:54:10 +01:00
Clifford Gama
611e7bc3a0
Fixed #36078 -- Doc'd that Postgres normalizes a range field with no points to empty.
...
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2025-03-18 16:49:53 +01:00
Adam Johnson
0dcc4a1dbc
Configured GitHub to highlight HTML files as Django templates.
2025-03-18 11:30:52 -03:00
Sarah Boyce
afbb8c709d
Handled WebDriverException from Chrome driver version 113+.
2025-03-18 10:52:01 +01:00
Sarah Boyce
8f400a7ff0
Made selenium tests less flaky by waiting until popups are closed and page is loaded.
2025-03-18 10:52:01 +01:00
Mike Edmunds
90fc762948
Refs #36138 -- Cleaned up duplicate code in mail_admins()/mail_managers().
2025-03-18 10:08:09 +01:00
Mike Edmunds
62ad970c39
Refs #36138 -- Improved tests for mail_admins() and mail_managers().
...
- Separated MailTests.test_connection_arg test cases.
- Expanded test cases for incorrect values of ADMINS/MANAGERS settings.
- Added test case verifying correct values of ADMINS/MANAGERS settings.
2025-03-18 10:08:09 +01:00
fowczrek
6a9db1e626
Fixed #34865 -- Released memory earlier than garbage collection on database wrapping layers.
...
Thank you Florian Apolloner, Jake Howard and Patryk Zawadzki for
the clarifying comments and reviews.
2025-03-17 18:28:20 -03:00
hesham942
e804a07d76
Fixed #36252 -- Handled duplicate automatic imports in the shell command.
2025-03-17 16:29:28 -03:00
Mariusz Felisiak
1823a80113
Fixed #33537 -- Made test database cloning on MySQL reraise unexpected errors.
...
Thanks Faakhir Zahid and Stephen Finucane for the initial patch.
Thanks Simon Charette for the review.
2025-03-17 15:45:08 +01:00
YQ
30e0a43937
Fixed #36254 -- Fixed template dictionary unpacking in docs/topics/i18n/timezones.txt.
2025-03-17 09:45:15 +01:00