Natalia
0125bc15d4
[5.2.x] Refs #35515 -- Added missing docs for --no-imports
flag for the shell command.
...
Backport of 3839afb63ad5183cdf08e06e3a43a014ca4b7263 from main.
2025-02-10 22:59:27 -03:00
amirreza sohrabi far
2cbf32ed36
[5.2.x] Clarified docs for default email value in UserManager.create_user().
...
Backport of 5da3ad7bf90fba7321f4c2834db44aa920c70bc7 from main.
2025-02-04 16:36:13 -03:00
nessita
b406907af5
[5.2.x] Tweaked docs to avoid reformatting given new black version.
...
Backport of fd3cfd80bebad292d639a03e58632e494369eb92 from main.
2025-01-30 10:38:44 -03:00
Clifford Gama
93e18a87dd
[5.2.x] Fixed ambiguous pronoun reference in docs/ref/models/fields.txt.
...
Backport of 9cc3970eaaf603832c075618e61aea9ea430f719 from main.
2025-01-24 18:46:43 +01:00
Igor Scheller
ae2f5381fe
[5.2.x] Refs 35653 -- Clarified docs for EMAIL_SSL_CERTFILE and EMAIL_SSL_KEYFILE settings.
...
Backport of 136a1e89278070fd100f27d9519529be8a8a8c10 from main.
2025-01-21 19:36:26 -03: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
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
Sage Abdullah
d7d711c68c
Refs #35718 , Refs #32179 -- Moved JSONObject to django.db.models.functions.json.
2024-12-16 12:06:01 +01:00
Ben Cardy
f30b527f17
Fixed #25582 -- Added support for query and fragment to django.urls.reverse().
2024-12-11 16:40:28 -03: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
Francisco Couzo
a0db341c3c
Added GeometryDistance to the GIS available functions table.
2024-12-09 09:36:17 +01:00
David Smith
edd74c3417
Refs #32819 -- Added id to ErrorList class and template.
2024-12-05 10:24:39 +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
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
Salvo Polizzi
b82f80906a
Fixed #35038 -- Created AlterConstraint operation.
2024-11-28 17:40:52 +01:00
Clifford Gama
e9929cb494
Made reverse() docs more self-contained.
2024-11-27 15:26:14 -03:00
Adam Zapletal
e9ed5da3cb
Removed trailing whitespace in docs.
2024-11-27 13:13:28 -03:00
Brock
d8eb13f0f8
Fixed #35939 -- Linked documentation of Permission.content_type to the ContentType model.
2024-11-27 12:34:49 +01:00
David Smith
9543c605c3
Fixed #35775 -- Confirmed support for GEOS 3.13.
2024-11-19 16:14:15 +01:00
Ben Cail
9609b48b91
Fixed #18392 -- Changed default mysql encoding to "utf8mb4".
2024-11-18 15:00:33 +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
Anthony Joseph
512a2bad05
Removed misleading list of tested OS in GEOS API docs.
2024-11-14 11:36:44 +01:00
sai-ganesh-03
c12bc980e5
Fixed #17905 -- Restricted access to model pages in admindocs.
...
Only users with view or change model permissions can access.
Thank you to Sarah Boyce for the review.
2024-11-11 16:56:03 +01:00
antoliny0919
63dbe30d33
Updated validate_slug regular expression in form validation docs.
...
Outdated since 014247ad1922931a2f17beaf6249247298e9dc44.
2024-11-11 14:50:13 +01:00
Adam Zapletal
54774e790d
Updated BRIN index links in contrib.postgres indexes docs.
2024-11-11 14:49:24 +01:00
sai-ganesh-03
c2c544cf01
Fixed #27409 -- Made admindocs support custom link text in docstrings.
2024-11-06 14:39:18 +01:00
antoliny0919
18b3a9dd39
Fixed #35889 -- Corrected reference of default widgets in "Styling widget instance" docs.
2024-11-06 13:07:29 +01:00
antoliny0919
72de38239f
Fixed #35880 -- Removed invalid example in form Field.required docs due to CharField.strip.
...
CharField.strip was introduced in 11cac1bd8ef7546ca32d9969d4348bf412dc6664, and is True by
default, meaning the previous example of " " raised a ValidationError.
2024-11-05 15:32:03 +01:00
antoliny0919
4fcbdb11b1
Made minor edits to form fields docs.
2024-11-04 10:15:20 +01:00
David Smith
cd4497254e
Fixed #35883 -- Confirmed support for GDAL 3.9.
...
Updated test for change to exportToXML() which now errors out on unsupported projection methods. See https://github.com/OSGeo/gdal/issues/9223 .
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2024-11-04 09:24:17 +01:00
antoliny0919
8864125d1f
Updated the "Built-in Field classes" section reference to a link.
2024-10-31 11:57:25 +01:00