1
0
mirror of https://github.com/django/django.git synced 2025-03-13 10:50:55 +00:00

5474 Commits

Author SHA1 Message Date
Clifford Gama
ae2736ca3b Fixed #36128 -- Clarified auto-generated unique constraint on m2m through models. 2025-03-04 13:06:09 +01:00
Chris Muthig
4b977a5d72 Fixed #35444 -- Added generic support for Aggregate.order_by.
This moves the behaviors of `order_by` used in Postgres aggregates into
the `Aggregate` class. This allows for creating aggregate functions that
support this behavior across all database engines. This is shown by
moving the `StringAgg` class into the shared `aggregates` module and
adding support for all databases. The Postgres `StringAgg` class is now
a thin wrapper on the new shared `StringAgg` class.

Thank you Simon Charette for the review.
2025-03-03 11:37:00 +01:00
Jonathan Ströbele
240421c7c4 Fixed #36186 -- Added forloop.length variable within a template for loop. 2025-02-24 16:25:53 +01:00
Sarah Boyce
582ba18d56 Added security guideline on reasonable size limitations when rendering content via the DTL.
This also removes the need to add warnings for every Django template filter.
2025-02-24 08:51:08 +01:00
enprava
51cab4ad51 Fixed #35705 -- Added Rotate GIS database function to rotate geometries. 2025-02-23 16:20:57 +01:00
Adam Zapletal
43766c70bd Clarified admonition in GeneratedField docs. 2025-02-20 14:41:00 +01:00
Sarah Boyce
9d22a7d8f0 Removed advice to propose a new contrib app. 2025-02-18 16:09:53 +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
Luke Cousins
579a1c9996 Corrected wording in docs/ref/models/constraints.txt. 2025-02-14 15:19:12 +01:00
Jaime Terreu
d87bb0eb3e Fixed typo in docs/ref/databases.txt. 2025-02-14 15:15:27 +01:00
Sarah Boyce
05002c153c Fixed #36182 -- Returned "?" if all parameters are removed in querystring template tag.
Thank you to David Feeley for the report and Natalia Bidart for the review.
2025-02-13 15:49:25 +01:00
Mariusz Felisiak
54a902c6e8 Reverted "Refs #35803 -- Added support for __coveredby GIS lookup on MariaDB 11.7+."
This partly reverts commit 0b7edb9fcdd33d47ec5701b4f9b9553e27a88e95.

MariaDB reverted GIS functions.
2025-02-13 10:38:04 +01:00
Mariusz Felisiak
eb70aafdba Reverted "Fixed #35803 -- Added support for Collect, GeoHash, and IsValid on MariaDB 11.7+."
This reverts commit c77573716a58af32ffcfc4fe87ff9e5c97909bd2.

MariaDB reverted GIS functions.
2025-02-13 10:38:04 +01:00
Natalia
3839afb63a Refs #35515 -- Added missing docs for --no-imports flag for the shell command. 2025-02-10 22:58:26 -03:00
Mariusz Felisiak
17160819f3
Fixed #36105 -- Dropped support for MariaDB 10.5. 2025-02-09 12:57:40 +01:00
amirreza sohrabi far
5da3ad7bf9
Clarified docs for default email value in UserManager.create_user(). 2025-02-04 16:35:07 -03:00
Andrew Harris
5f30fd2358 Refs #36036 -- Added support for GEOSHasM. 2025-02-03 11:34:23 +00:00
nessita
fd3cfd80be
Tweaked docs to avoid reformatting given new black version. 2025-01-30 10:37:14 -03:00
Mohammadreza Eskandari
12b9ef38b3 Fixed #36121 -- Allowed customizing the admin site password change form. 2025-01-30 11:19:05 +00: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
Clifford Gama
9cc3970eaa Fixed ambiguous pronoun reference in docs/ref/models/fields.txt. 2025-01-24 18:45:31 +01:00
Igor Scheller
136a1e8927
Refs 35653 -- Clarified docs for EMAIL_SSL_CERTFILE and EMAIL_SSL_KEYFILE settings. 2025-01-21 19:34:23 -03: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
85750bd2f8 Refs #35234 -- Removed CheckConstraint.check per deprecation timeline. 2025-01-15 22:28:37 +01:00
Sarah Boyce
4968f0012e Refs #35058 -- Removed OGRGeometry.coord_dim setter per deprecation timeline. 2025-01-15 22:28:37 +01:00
Sarah Boyce
d5fec03dad Refs #35060 -- Removed passing positional arguments to Model.save()/asave() per deprecation timeline. 2025-01-15 22:28:37 +01:00
Sarah Boyce
8d695bf510 Removed django.contrib.gis.geoip2.GeoIP2.open() per deprecation timeline. 2025-01-15 22:28:37 +01:00
Sarah Boyce
4104dafdf3 Removed django.contrib.gis.geoip2.GeoIP2.coords() per deprecation timeline. 2025-01-15 22:28:37 +01:00
Sarah Boyce
b4bc393b23 Refs #33817 -- Removed support for cx_Oracle per deprecation timeline. 2025-01-15 22:28:37 +01:00
Sarah Boyce
9a3f86e960 Refs #34380 -- Changed the URLField default scheme to https and removed FORMS_URLFIELD_ASSUME_HTTPS per deprecation timeline. 2025-01-15 22:28:37 +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
1e331911a8 Refs #34609 -- Removed support for calling format_html() without arguments per deprecation timeline. 2025-01-15 22:28:37 +01:00
Sarah Boyce
ba90b76c6e Refs #32339 -- Removed transitional form renderers per deprecation timeline. 2025-01-15 22:28:37 +01:00
Sarah Boyce
b5a6c93a18 Refs #34355 -- Removed support for positional arguments in BaseConstraint 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
Matthias Kestenholz
6a7ee02f59
Fixed #35521 -- Allowed overriding BoundField class on fields, forms and renderers.
Thank you Sarah Boyce, Carlton Gibson, Tim Schilling and Adam Johnson
for reviews.

Co-authored-by: Christophe Henry <contact@c-henry.fr>
Co-authored-by: David Smith <smithdc@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Matthias Kestenholz <mk@feinheit.ch>
2025-01-15 17:04:26 -03: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
Jacob Walls
d206d4c200 Fixed #36051 -- Declared arity on aggregate functions.
Follow-up to 4a66a69239c493c05b322815b18c605cd4c96e7c.
2025-01-14 16:47:07 +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
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
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
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
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
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