1
0
mirror of https://github.com/django/django.git synced 2025-03-06 23:42:33 +00:00

14062 Commits

Author SHA1 Message Date
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
Natalia
f2a1dcaa53 Added CVE-2024-56374 to security archive. 2025-01-14 11:37:50 -03:00
Natalia
3b46bea909 Added stub release notes for 5.1.6. 2025-01-14 11:33:28 -03:00
Michael Manfre
ca2be7724e Fixed CVE-2024-56374 -- Mitigated potential DoS in IPv6 validation.
Thanks Saravana Kumar for the report, and Sarah Boyce and Mariusz
Felisiak for the reviews.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-01-14 08:42:24 -03:00
Natalia
9a2dd9789a Made cosmetic edits to 5.1.5 release notes. 2025-01-14 08:33:03 -03:00
Jacob Walls
d66137b39b Fixed #36077 -- Corrected docs on pk value where Model.save() executes an UPDATE.
The empty string is no longer special-cased since
c2ba59fc1da5287d6286e2c2aca4083d5bafe056.
2025-01-13 11:18:02 +01:00
antoliny0919
97ee8b82c2 Fixed #36032 -- Rendered URLField values as links in the admin. 2025-01-10 12:57:53 +01:00
Salvo Polizzi
fc28550fe4
Fixed #35515 -- Added automatic model imports to shell management command.
Thanks to Bhuvnesh Sharma and Adam Johnson for mentoring this Google
Summer of Code 2024 project. Thanks to Sarah Boyce, David Smith, Jacob
Walls and Natalia Bidart for reviews.
2025-01-09 13:00:29 -03:00
Sarah Boyce
15e207ce80 Fixed #35999 -- Removed #django IRC channel references where appropriate.
Some references are replaced with links to the Django Discord server.
2025-01-08 10:24:52 +01:00
Carlton Gibson
007f143659 Strengthened wording on supported Python versions in FAQ. 2025-01-08 10:21:55 +01:00
Natalia
53e21eebf2 Added stub release notes and release date for 5.1.5, 5.0.11, and 4.2.18. 2025-01-07 12:28:39 -03:00
Clifford Gama
095f5db060
Fixed typo in tutorial 5. 2025-01-07 10:47:56 -03:00
Jacob Walls
470e5545e5 Refs #36042 -- Raised ValueError when providing composite expressions to aggregates. 2025-01-07 11:42:06 +01:00
John Parton
40d5516385 Fixed #35718 -- Add JSONArray to django.db.models.functions.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2025-01-06 10:08:32 +01:00
Chris Muthig
d734f1651c Refs #35444 -- Deprecated contrib.postgres aggregates ordering for order_by.
Aligns the argument with SQL standards already used in Window.order_by and
sets up for adding support to Aggregate.
2025-01-06 09:39:21 +01:00
Chaitanya Rahalkar
d97cacc2ae Fixed #36026 -- Clarified that View.setup() sets the request, args, kwargs attributes. 2025-01-03 14:11:23 +01:00
David Smith
987854ba44 Fixed #32819 -- Added aria-describedby to fields with errors. 2025-01-02 16:40:39 +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
Mariusz Felisiak
b322319f9d Fixed #36034 -- Added system check for ForeignKey/ForeignObject/ManyToManyField to CompositePrimaryKeys. 2025-01-02 13:06:47 +01:00
David Smith
8d9901c961
Fixed #35891 -- Confirmed support for GDAL 3.10. 2024-12-27 12:21:04 -03:00
Andrew Miller
0fc6d5362b Fixed #26007 -- Clarified SingleObjectTemplateResponseMixin.get_template_names() docs. 2024-12-18 13:08:14 +01:00
David Smith
1e05431881 Refs #32819 -- Added aria-describedby property to BoundField. 2024-12-17 12:04:44 +01:00
suraj
0d9872fc9a Fixed #7732 -- Added support for connection pools on Oracle. 2024-12-17 11:26:32 +01:00
Mariusz Felisiak
2249370c86 Fixed #35992, Fixed #35997 -- Added system check for CompositePrimaryKeys in Meta.indexes/constraints/unique_together.
CompositePrimaryKeys are not supported in any of these options.
2024-12-17 10:28:40 +01:00
Andrés Reverón Molina
b44efdfe54 Fixed #34856 -- Fixed references to index_together in historical migrations.
While AlterUniqueTogether has been documented to be still allowed in historical
migrations for the foreseeable future it has been crashing since 2abf417c815c20
was merged because the latter removed support for Meta.index_together which the
migration framework uses to render models to perform schema changes.

CreateModel(options["unique_together"]) was also affected.

Refs #27236.

Co-authored-by: Simon Charette <charette.s@gmail.com>
2024-12-17 09:59:39 +01:00
Chiemezuo
e9ed9ec043 Fixed #36008 -- Fixed order of database reset in TransactionTestCase docs. 2024-12-16 13:12:48 +01:00
Sage Abdullah
d7d711c68c Refs #35718, Refs #32179 -- Moved JSONObject to django.db.models.functions.json. 2024-12-16 12:06:01 +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
Ben Cardy
f30b527f17
Fixed #25582 -- Added support for query and fragment to django.urls.reverse(). 2024-12-11 16:40:28 -03:00
Jacob Walls
2ce4545de1 Fixed #35920 -- Observed requires_system_checks in migrate and runserver.
Before, the full suite of system checks was run by these commands
regardless if requires_system_checks had been overridden.

Co-authored-by: Simon Charette <charette.s@gmail.com>
2024-12-11 17:25:47 +01:00
Jeremy Thompson
918e7a2c76 Fixed #35989 -- Removed crs from GeoJSON serializer.
Specification of coordinate reference systems (crs) was removed from the GeoJSON spec in 2016.
https://datatracker.ietf.org/doc/html/rfc7946#appendix-B.1
2024-12-11 10:45:47 +01:00
Simon Charette
b0b3024720 Refs #35982 -- Made BaseDatabaseOperations.adapt_decimalfield_value() a no-op. 2024-12-09 09:46:06 +01:00
Francisco Couzo
a0db341c3c Added GeometryDistance to the GIS available functions table. 2024-12-09 09:36:17 +01:00
Mariusz Felisiak
6f6b261c3e Removed unused and unnecessary words from docs/spelling_wordlist.
This removes unused words and words contained within the Enchant
dictionary.
2024-12-09 09:34:18 +01:00
Ülgen Sarıkavak
c075d4c2c8 Made index view examples consistent in tutorial by removing trailing comma. 2024-12-06 12:53:54 +01:00
David Smith
edd74c3417 Refs #32819 -- Added id to ErrorList class and template. 2024-12-05 10:24:39 +01:00
Sarah Boyce
eb665e076c Cleaned up CVE-2024-53907 and CVE-2024-53908 security archive descriptions. 2024-12-04 16:59:57 +01:00
Sarah Boyce
595cb4a7ae Added CVE-2024-53907 and CVE-2024-53908 to security archive. 2024-12-04 16:30:03 +01:00
Sarah Boyce
828afd782f Added stub release notes for 5.1.5. 2024-12-04 16:23:59 +01:00
Simon Charette
8f8dc5a1fc Fixed CVE-2024-53908 -- Prevented SQL injections in direct HasKeyLookup usage on Oracle.
Thanks Seokchan Yoon for the report, and Mariusz Felisiak and Sarah
Boyce for the reviews.
2024-12-04 13:43:13 +01:00
Sarah Boyce
49ff1042aa Fixed CVE-2024-53907 -- Mitigated potential DoS in strip_tags().
Thanks to jiangniao for the report, and Shai Berger and Natalia Bidart
for the reviews.
2024-12-04 13:43:13 +01:00
Anders Hovmöller
871e1ee5ff
Removed question marks from headings in docs/topics/db/fixtures.txt. 2024-12-02 21:54:48 -03:00
Adam Johnson
2f6b096b83 Fixed #35950 -- Restored refreshing of relations when fields deferred.
Thank you to Simon Charette and Sarah Boyce for the review.

Regression in 73df8b54a2fab53bec4c7573cda5ad8c869c2fd8.
2024-12-02 16:01:37 +01:00
antoliny0919
32b9e00b0c Fixed #35964 -- Cleaned up can_order and can_delete formset examples. 2024-12-02 12:56:46 +01:00
SaJH
b0d9c1fe32 Updated docs example to clear cached_property without raising AttributeError.
Signed-off-by: SaJH <wogur981208@gmail.com>
2024-12-02 11:17:51 +01:00
jburns6789
b8f9f625a1 Fixed #35915 -- Clarified the empty list case in QueryDict.__getitem__() docs. 2024-12-02 11:11:05 +01:00
Clifford Gama
3d819e2324 Removed reference to "removing older versions of Django" in tutorial.
Obsoleted in c4fa0143f7117a07a3f0258a063f5265e795ffbb.
The general install instructions are still linked above.
2024-11-29 17:10:16 +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
Jaap Roes
ceecd518b1 Fixed #35530 -- Deprecated request.user fallback in auth.login and auth.alogin. 2024-11-28 17:43:46 +01:00