1
0
mirror of https://github.com/django/django.git synced 2025-06-08 21:19:13 +00:00

3308 Commits

Author SHA1 Message Date
ontowhee
ddb8529415 Fixed #34262 -- Added support for AnyValue for SQLite, MySQL, Oracle, and Postgresql 16+.
Thanks Simon Charette for the guidance and review. Thanks Tim Schilling for the
documentation review. Thanks David Wobrock for investigation and solution proposals.
2025-05-20 10:01:42 +02:00
Simon Charette
e03e5c751c Fixed #33312 -- Raised explicit exception when copying deferred model instances.
Previously save() would crash with an attempted forced update message, and both
save(force_insert=True) and bulk_create() would crash with DoesNotExist errors
trying to retrieve rows with an empty primary key (id IS NULL).

Implementing deferred field model instance copying might be doable in certain
cases (e.g. when all the deferred fields are db generated) but that's not
trivial to implement in a backward compatible way.

Thanks Adam Sołtysik for the report and test and Clifford for the review.
2025-05-16 08:13:57 +02:00
savanto
8620a3b0c7 Fixed #36085 -- Added JSONField support for negative array indexing on SQLite. 2025-05-14 13:21:18 +02:00
Clifford Gama
9d93e35c20 Fixed #17461 -- Doc'd the presumed order of foreign keys on the intermediary model of a self-referential m2m.
Thanks Giannis Terzopoulos and Sarah Boyce for the reviews.
2025-05-02 07:56:56 +01:00
dbogar89
7b394b9988
Fixed #36335 -- Fixed typo in docs/topics/db/managers.txt. 2025-04-27 08:40:14 +02:00
Ahmed Nassar
be402891cd Fixed #36311 -- Unified spelling of "hardcode" and its variants in docs.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-04-15 14:48:55 -03:00
Ahmed Nassar
8bca33f68a Fixed #36269 -- Documented how to test callable storage in FileField. 2025-04-15 10:05:59 +02:00
Ahmed Nassar
2c2f090555 Fixed #35993 -- Documented gettext f-string support limitations.
Thank you to Claude Paroz and Athena Wolfskämpf for the review.
2025-04-15 10:02:25 +02:00
Song Junho
126417be43 Fixed #36265 -- Added support for serialization of ZoneInfo instances in migrations. 2025-03-31 13:44:54 +02:00
mguegnol
e2b9a17913
Fixed typo in docs/topics/signals.txt. 2025-03-23 20:02:42 +01:00
Clifford Gama
6a2c296e70 Fixed #36095 -- Introduced lazy references in "Models across files" section. 2025-03-21 14:09:10 +01: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
YQ
30e0a43937 Fixed #36254 -- Fixed template dictionary unpacking in docs/topics/i18n/timezones.txt. 2025-03-17 09:45:15 +01:00
Clifford Gama
efe3ca09e0
Fixed incorrect formatting for inline pluralized code references in docs. 2025-03-13 15:18:35 -03:00
hesham hatem
e03440291b
Fixed #36249 -- Fixed typo in docs/topics/db/queries.txt. 2025-03-12 18:09:04 -03:00
Clifford Gama
0ebea6e5c0 Fixed #35676 -- Made BaseModelForm validate constraints that reference an InlineForeignKeyField.
Co-authored-by: Simon Charette <charette.s@gmail.com>
2025-03-12 09:16:15 +01:00
Clifford Gama
ae2736ca3b Fixed #36128 -- Clarified auto-generated unique constraint on m2m through models. 2025-03-04 13:06:09 +01:00
Tim Graham
6d1cf5375f
Added some heading labels to to docs/topics/cache.txt. 2025-03-02 19:55:04 +01:00
Sarah Boyce
5935336059 Added security reporting guidelines. 2025-02-24 08:51:08 +01:00
Mariusz Felisiak
65c46d6932
Fixed #35358, Refs #35234 -- Renamed _check() methods to check() for constraints. 2025-02-19 20:27:30 +01:00
Mariusz Felisiak
efb7f9ced2
Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc.
datetime.UTC was added in Python 3.11.
2025-02-18 08:35:36 +01:00
Simon Charette
2d34ebe49a Refs #35967 -- Deprecated BaseDatabaseCreation.create_test_db(serialize).
Given there are no longer any internal usages of serialize=True and it
poses a risk to non-test databases integrity it seems appropriate to
deprecate it.
2025-02-16 08:43:42 +01:00
Simon Charette
99ac8e2589 Refs #35967 -- Doc'd DatabaseCreation.serialize_db_to_string() method. 2025-02-16 08:37:55 +01:00
Mariusz Felisiak
d9af197801
Refs #36005 -- Bumped minimum supported versions of 3rd-party packages.
This bumps minimum supported versions of 3rd-party packages to the first
releases to support Python 3.12.
2025-01-28 08:02:13 +01:00
Georgi Yanchev
64b1ac7292 Fixed #24529 -- Allowed double squashing of migrations.
Co-authored-by: Raphael Gaschignard <raphael@rtpg.co>
2025-01-22 10:56:30 +01:00
Mariusz Felisiak
f5772de696 Fixed #36005 -- Dropped support for Python 3.10 and 3.11. 2025-01-20 14:07:28 +01:00
Sarah Boyce
9cb1ffa67b Refs #35090 -- Removed support for django.urls.register_converter() overriding existing converters per deprecation timeline. 2025-01-15 22:28:37 +01:00
Sarah Boyce
810edfd742 Removed versionadded/changed annotations for 5.1.
This also removes remaining versionadded/changed annotations for older
versions.
2025-01-15 22:28:37 +01:00
Jacob Walls
de9f46d707 Fixed #36070 -- Clarified model validation behavior for composite pks. 2025-01-15 13:44:23 +01:00
Jacob Walls
f054045973 Refs #36070 -- Referred to pk as an attribute when a composite primary key is defined.
This is to avoid confusion that a field is often associated with having
a single associated database column.
2025-01-15 13:44:23 +01:00
Simon Charette
e580926d74 Fixed #36075 -- Documented how to introspect composite primary keys.
Document _meta.pk_fields and interactions between Field.primary_key and
CompositePrimaryKey.

Thanks Mariusz for the review.
2025-01-14 16:20:17 +01:00
Jacob Walls
470e5545e5 Refs #36042 -- Raised ValueError when providing composite expressions to aggregates. 2025-01-07 11:42:06 +01:00
Ari Pollak
ad385ae163 Fixed #36037 -- Fixed default primary key type in docs.
BigAutoField is the default type for primary keys. In models.txt, the linked
anchor shows that the default primary key is a BigAutoField, so it now defers
to that section instead of duplicating an (incorrect) type.
2025-01-02 15:25:59 +01:00
Johannes Maron
989329344a Fixed #35886 -- Added support for object-based form media script assets. 2025-01-02 13:08:13 +01:00
Chiemezuo
e9ed9ec043 Fixed #36008 -- Fixed order of database reset in TransactionTestCase docs. 2024-12-16 13:12:48 +01:00
amansharma612
6f38697f90
Removed links to outdated tools in docs/topics/performance.txt.
Co-authored-by: Aman Sharma <210100011@iitb.ac.in>
2024-12-11 16:47:18 -03:00
Anders Hovmöller
871e1ee5ff
Removed question marks from headings in docs/topics/db/fixtures.txt. 2024-12-02 21:54:48 -03:00
antoliny0919
32b9e00b0c Fixed #35964 -- Cleaned up can_order and can_delete formset examples. 2024-12-02 12:56:46 +01:00
Bendeguz Csirmaz
978aae4334 Fixed #373 -- Added CompositePrimaryKey.
Thanks Lily Foote and Simon Charette for reviews and mentoring
this Google Summer of Code 2024 project.

Co-authored-by: Simon Charette <charette.s@gmail.com>
Co-authored-by: Lily Foote <code@lilyf.org>
2024-11-29 11:23:04 +01:00
Adam Zapletal
2e190a48d6
Added missing backticks to class-based views docs. 2024-11-26 17:10:39 -03:00
antoliny0919
c56e1273a9 Refs #32339 -- Updated formset docs to reflect default rendering as as_div. 2024-11-18 16:59:33 +01:00
Caitlin Hogan
ca113adbae Fixed typo in docs/topics/performance.txt. 2024-11-18 15:12:42 +01:00
Lorenzo Peña
91c879eda5
Fixed #35784 -- Added support for preserving the HTTP request method in HttpResponseRedirectBase.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-11-14 15:53:49 -03:00
Alexander Lazarević
8590d05d44 Fixed #35887 -- Added imports and admin.site.register to non-partial admin inline doc examples. 2024-11-14 12:09:50 +01:00
Maria Hynes
7e759d9af7 Fixed #17430 -- Documented access to the Django admin when using a custom auth backend. 2024-11-14 10:29:32 +01:00
Clifford Gama
299b072498
Fixed #35843 -- Clarified formset docs about reordering forms. 2024-11-13 15:14:16 -03:00
Johanan-Ayadata
97a6a678c4 Added missing lang attributes to html elements in docs. 2024-10-30 14:02:30 +01:00
Mike Edmunds
17c8ee7e3f Fixed #35864 -- Documented EmailMessage.connection is ignored when using send_messages(). 2024-10-30 11:20:52 +01:00
Yash
35ab2e0182 Fixed #35731 -- Extended db_default docs.
This added a missing db_default reference in docs/topics/db/models.txt,
and added a reference to the DatabaseDefault object.
2024-10-23 11:48:30 +02:00