1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00
Commit Graph

5382 Commits

Author SHA1 Message Date
Clifford Gama
8cb8820fbf [5.1.x] Fixed pronoun disagreement in docs/ref/models/querysets.txt.
Backport of ef6a83789b from main.
2025-03-14 10:51:30 +01:00
Clifford Gama
67fc5805db [5.1.x] Corrected aggregation example in docs/ref/models/querysets.txt.
Backport of 3235e76eb5 from main.
2025-03-14 10:50:54 +01:00
samruddhiDharankar
ccd5867ae6 [5.1.x] Fixed #36066 -- Documented that Q objects can be used directly in annotations.
Backport of 9120a19c4e from main.
2025-03-10 12:57:37 +01:00
hesham942
d7dc1f6db0 [5.1.x] Fixed typo in docs/ref/checks.txt.
Backport of 8f942f1c1d from main.
2025-03-05 16:23:43 +01:00
hesham942
dbd94e7ac9 [5.1.x] Fixed #36227 -- Fixed outdated PostgreSQL documentation links.
Backport of 3ecaa85a24 from main.
2025-03-05 15:18:24 +01:00
Clifford Gama
cc405e1546 [5.1.x] Fixed #36128 -- Clarified auto-generated unique constraint on m2m through models.
Backport of ae2736ca3b from main.
2025-03-04 13:08:01 +01:00
Sarah Boyce
11243cc8f3 [5.1.x] 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.

Backport of 582ba18d56 from main.
2025-02-24 08:59:00 +01:00
Adam Zapletal
f8b72f8547 [5.1.x] Clarified admonition in GeneratedField docs.
Backport of 43766c70bd from main.
2025-02-20 14:43:22 +01:00
Sarah Boyce
8c8e2a81b7 [5.1.x] Removed advice to propose a new contrib app.
Backport of 9d22a7d8f0 from main.
2025-02-18 16:12:57 +01:00
Luke Cousins
391fde9e54 [5.1.x] Corrected wording in docs/ref/models/constraints.txt.
Backport of 579a1c9996 from main.
2025-02-14 15:21:40 +01:00
58eec456a2 [5.1.x] Fixed typo in docs/ref/databases.txt.
Backport of d87bb0eb3e from main.
2025-02-14 15:18:02 +01:00
Sarah Boyce
65113401f1 [5.1.x] 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.

Backport of 05002c153c from main.
2025-02-13 15:57:56 +01:00
amirreza sohrabi far
4a04944f07 [5.1.x] Clarified docs for default email value in UserManager.create_user().
Backport of 5da3ad7bf9 from main.
2025-02-04 16:35:44 -03:00
nessita
173edebf7f [5.1.x] Corrected ArrayAgg example for ordering usage. 2025-01-30 14:50:47 -03:00
nessita
4f0169e94f [5.1.x] Tweaked docs to avoid reformatting given new black version.
Backport of fd3cfd80be from main.
2025-01-30 10:39:08 -03:00
Clifford Gama
8ad0d09a00 [5.1.x] Fixed ambiguous pronoun reference in docs/ref/models/fields.txt.
Backport of 9cc3970eaa from main.
2025-01-24 18:48:07 +01:00
Igor Scheller
9213226286 [5.1.x] Refs 35653 -- Clarified docs for EMAIL_SSL_CERTFILE and EMAIL_SSL_KEYFILE settings.
Backport of 136a1e8927 from main.
2025-01-21 19:35:54 -03:00
Michael Manfre
4806731e58 [5.1.x] 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:44:20 -03:00
Jacob Walls
b325864686 [5.1.x] Fixed #36077 -- Corrected docs on pk value where Model.save() executes an UPDATE.
The empty string is no longer special-cased since
c2ba59fc1d.

Backport of d66137b39b from main.
2025-01-13 11:20:05 +01:00
Anthony Joseph
a2bc2925b1 [5.1.x] Removed misleading list of tested OS in GEOS API docs.
Backport of 512a2bad05 from main.
2024-11-14 11:39:49 +01:00
antoliny0919
d71c588d83 [5.1.x] Updated validate_slug regular expression in form validation docs.
Outdated since 014247ad19.

Backport of 63dbe30d33 from main.
2024-11-11 14:52:08 +01:00
Adam Zapletal
4c079918e8 [5.1.x] Updated BRIN index links in contrib.postgres indexes docs.
Backport of 54774e790d from main.
2024-11-11 14:51:22 +01:00
antoliny0919
fe12428cb9 [5.1.x] Fixed #35889 -- Corrected reference of default widgets in "Styling widget instance" docs.
Backport of 18b3a9dd39 from main.
2024-11-06 13:09:31 +01:00
antoliny0919
cae0c7f48a [5.1.x] Fixed #35880 -- Removed invalid example in form Field.required docs due to CharField.strip.
CharField.strip was introduced in 11cac1bd8e, and is True by
default, meaning the previous example of " " raised a ValidationError.

Backport of 72de38239f from main.
2024-11-05 15:36:23 +01:00
antoliny0919
4ae358122b [5.1.x] Made minor edits to form fields docs.
Backport of 4fcbdb11b1 from main.
2024-11-04 10:17:20 +01:00
Johanan-Ayadata
5045dab4f9 [5.1.x] Added missing lang attributes to html elements in docs.
Backport of 97a6a678c4 from main.
2024-10-30 14:04:37 +01:00
antoliny0919
4915feaaf7 [5.1.x] Fixed #35873 -- Corrected Form.as_table() call in form docs.
Backport of 8f3dee1dfd from main.
2024-10-30 11:07:13 +01:00
aruseni
c5ddc8550c [5.1.x] Corrected note on importing fields in model field reference docs.
Backport of d7f78eb5d6 from main.
2024-10-29 16:49:02 +01:00
Clifford Gama
b8277179d0 [5.1.x] Fixed typo in ref/models/fields.txt.
Backport of 799c377818 from main.
2024-10-29 11:32:49 +01:00
antoliny0919
a0ea554d24 [5.1.x] Fixed #35871 -- Corrected example on altering the base_fields attribute in forms docs.
Backport of 738e0601d5 from main.
2024-10-29 08:40:59 +01:00
Carlton Gibson
56ad530ade [5.1.x] Refs #26029 -- Extended docs for the StorageHandler default instance.
Third-party packages that provide storages need to rely on the
StorageHandler API in order to allow users to use the `storages` module
instance to override defaults. Minimally documenting these methods
allows package authors to rely on them.

Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>

Backport of 6dcab75d5d from main.
2024-10-24 11:58:18 -03:00
koresi
34989e076b [5.1.x] Fixed #22828 -- Warned that ModelAdmin get hooks return the property itself rather a copy.
Backport of b8e9cdf13b from main.
2024-10-24 10:02:22 +02:00
David D Lowe
8bfa520a01 [5.1.x] Doc'd that unusable passwords are defined by metadata in the password field.
Backport of de2bb73904 from main.
2024-10-23 14:21:05 -03:00
Yash
630c9e1f9d [5.1.x] 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.

Backport of 35ab2e0182 from main.
2024-10-23 11:51:13 +02:00
ssanger
8efba53397 [5.1.x] Added missing alt attribute to <img> tag in docs.
Backport of df6013b2b4 from main.
2024-10-22 14:20:00 +02:00
Clifford Gama
9a5eae0ad8 [5.1.x] Fixed #26322 -- Consolidated lazy relationships details in docs/ref/models/fields.txt.
Reorganized docs to list and explain the types of lazy relationships
that can be defined in related fields.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of 65f3cfce59 from main.
2024-10-17 11:42:54 -03:00
nessita
6bedb102e9 [5.1.x] Reindented attributes and methods for classes in docs/ref/middleware.txt.
Backport of 1feedc8ef8 from main.
2024-10-02 14:21:43 -03:00
Aditya Chaudhary
bf64ac3567 [5.1.x] Fixed #35670 -- Clarified the return value for LoginRequiredMiddleware's methods.
Backport of efc3b0c627 from main.
2024-10-02 13:15:57 -03:00
Chiara Mezzavilla
53031136f5 [5.1.x] Relocated path() explanation to docs/ref/urls.txt to simplify tutorial 1.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of 73e8e81141 from main.
2024-09-30 13:32:39 -03:00
Jon Ribbens
d3da505999 [5.1.x] Fixed #35681 -- Corrected geoip2 docs when describing GeoIP2Exception.
Backport of 826ef00668 from main.
2024-09-07 00:04:59 -03:00
Natalia
3c733c78d6 [5.1.x] Fixed CVE-2024-45231 -- Avoided server error on password reset when email sending fails.
On successful submission of a password reset request, an email is sent
to the accounts known to the system. If sending this email fails (due to
email backend misconfiguration, service provider outage, network issues,
etc.), an attacker might exploit this by detecting which password reset
requests succeed and which ones generate a 500 error response.

Thanks to Thibaut Spriet for the report, and to Mariusz Felisiak, Adam
Johnson, and Sarah Boyce for the reviews.
2024-09-03 09:24:21 -03:00
Sarah Boyce
022ab0a75c [5.1.x] Fixed CVE-2024-45230 -- Mitigated potential DoS in urlize and urlizetrunc template filters.
Thanks MProgrammer (https://hackerone.com/mprogrammer) for the report.
2024-09-03 09:24:13 -03:00
Adam Johnson
fcb71a76cc [5.1.x] Removed outdated note about lack of subquery support in MySQL.
Backport of 26a67943ac from main.
2024-08-28 15:56:35 -03:00
Mariusz Felisiak
625aab3aea [5.1.x] Fixed typo in docs/ref/models/expressions.txt.
Backport of fed11ba461 from main.
2024-08-28 09:09:16 -03:00
David Smith
dbca05698a [5.1.x] Fixed typo of --no-startup in django-admin docs.
Backport of 5ae9922666 from main.
2024-08-13 11:21:06 +02:00
Jure Cuhalev
ecf13f192d [5.1.x] Doc'd that SessionMiddleware is required for the admin site.
The system check "admin.E410" was already checking for this, but the
requirement was not listed in docs/ref/contrib/admin/index.txt.

Backport of f8ef4579ea from main.
2024-08-08 08:50:27 -03:00
Andrew Miller
73fcb14cd8 [5.1.x] Refs #35591 -- Emphasized that runserver is not suitable for production.
Backport of cec62fb99e from main.
2024-08-08 10:10:29 +02:00
Adam Johnson
291fa5fbbe [5.1.x] Refs #31405 -- Improved LoginRequiredMiddleware documentation.
co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>

Backport of 49815f70e4 from main.
2024-08-08 10:07:12 +02:00
Mariusz Felisiak
20bd3f02be [5.1.x] Used :pypi: role in docs where appropriate.
Backport of 304d256674 from main.
2024-08-05 10:36:41 -03:00
Natalia
06fb6434b3 [5.1.x] Refs #35380 -- Updated screenshots in admin docs.
Backport of 90adba85b2 from main.
2024-08-05 09:14:24 -03:00