1
0
mirror of https://github.com/django/django.git synced 2025-05-02 05:04:48 +00:00

3261 Commits

Author SHA1 Message Date
mguegnol
659f88e4c9 [5.1.x] Fixed typo in docs/topics/signals.txt.
Backport of e2b9a179133ebca9773c5c259f6a7d27489cf141 from main
2025-03-23 20:06:39 +01:00
Clifford Gama
f927c9f2aa [5.1.x] Fixed #36095 -- Introduced lazy references in "Models across files" section.
Backport of 6a2c296e706a0b8f9f9b89e66b37001ce2a03ea7 from main.
2025-03-21 14:12:23 +01:00
Carlton Gibson
ab4bb5b2f9 [5.1.x] Fixed #33497 -- Doc'd that persistent DB connections should be disabled in ASGI and async modes.
Backport of 8713e4ae96817a0c7be3f7a8fee25a7c7f819721 from main.
2025-03-18 21:28:43 -03:00
Clifford Gama
e9acb05b63 [5.1.x] Fixed #36202 -- Added examples of JSONField __contains and __contained_by lookups with nested arrays to docs.
Backport of 304e9f3d6ae8387bbfc261d68b51247a1f5230bb from main
2025-03-18 21:56:20 +01:00
YQ
71558701df [5.1.x] Fixed #36254 -- Fixed template dictionary unpacking in docs/topics/i18n/timezones.txt.
Backport of 30e0a43937e685083fa1210c3594678a3b813806 from main.
2025-03-17 09:49:54 +01:00
hesham hatem
d752ec8259 [5.1.x] Fixed #36249 -- Fixed typo in docs/topics/db/queries.txt.
Backport of e03440291b0599934da73b7dfbd2ccf7ec7270d8 from main.
2025-03-12 18:10:11 -03:00
Clifford Gama
cc405e1546 [5.1.x] Fixed #36128 -- Clarified auto-generated unique constraint on m2m through models.
Backport of ae2736ca3bf4c6a27e23ee95530ad965b550d4cc from main.
2025-03-04 13:08:01 +01:00
Tim Graham
76a9f12b60 [5.1.x] Added some heading labels to to docs/topics/cache.txt.
Backport of 6d1cf5375f6fbc1496095d2356357c3b08a46324 from main
2025-03-02 19:56:11 +01:00
Sarah Boyce
b80288a16d [5.1.x] Added security reporting guidelines.
Backport of 59353360590202fab04067e23214a825157c524b from main.
2025-02-24 08:58:11 +01:00
Simon Charette
20e965e869 [5.1.x] Refs #35967 -- Doc'd DatabaseCreation.serialize_db_to_string() method.
Backport of 99ac8e2589ea978c1c80ff66b4536814121f77dd from main
2025-02-16 13:46:34 +01:00
amansharma612
5f4252ecd6 [5.1.x] Removed links to outdated tools in docs/topics/performance.txt.
Co-authored-by: Aman Sharma <210100011@iitb.ac.in>

Backport of 6f38697f90a14f1450a71c1e40aea0f5df7dca86 from main.
2024-12-11 16:55:14 -03:00
Anders Hovmöller
5b4d949d7c [5.1.x] Removed question marks from headings in docs/topics/db/fixtures.txt.
Backport of 871e1ee5ff0b75aee5dd1bd3e88e349ca0ddc60d from main.
2024-12-02 21:56:26 -03:00
antoliny0919
4c65aecfe7 [5.1.x] Refs #32339 -- Updated formset docs to reflect default rendering as as_div.
Backport of c56e1273a9d87ffad3a84fb597550f79b9820281 from main.
2024-11-18 17:00:56 +01:00
Caitlin Hogan
1be9c5fb56 [5.1.x] Fixed typo in docs/topics/performance.txt.
Backport of ca113adbae1cc2129256f51ac71e8aed2a381576 from main.
2024-11-18 15:14:05 +01:00
Maria Hynes
c387d86882 [5.1.x] Fixed #17430 -- Documented access to the Django admin when using a custom auth backend.
Backport of 7e759d9af714b4db6735f7e53f62a5933a6260b8 from main.
2024-11-14 10:36:16 +01:00
Clifford Gama
4c5455d25c [5.1.x] Fixed #35843 -- Clarified formset docs about reordering forms.
Backport of 299b072498b23d1d7fe9f1545f7b27b73ca8e22b from main.
2024-11-13 15:15:16 -03:00
Johanan-Ayadata
5045dab4f9 [5.1.x] Added missing lang attributes to html elements in docs.
Backport of 97a6a678c406b0049bd17bcd34f1d71d96141994 from main.
2024-10-30 14:04:37 +01:00
Mike Edmunds
ffc67aac1e [5.1.x] Fixed #35864 -- Documented EmailMessage.connection is ignored when using send_messages().
Backport of 17c8ee7e3f7bf400128281b4fb283d7c209ca02b from main.
2024-10-30 11:37:05 +01: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 35ab2e018214479fa712d73f070198299ef670a1 from main.
2024-10-23 11:51:13 +02:00
Natalia
a313e203e0 [5.1.x] Refs #35502 -- Clarified models.py file path in docs/topics/db/queries.txt.
Backport of fc1119e8be705766b0277a0ebf8ad637f9d068c2 from main.
2024-10-09 09:13:58 -03:00
Carlton Gibson
d96b661135 [5.1.x] Fixed #35767 -- Adjusted customizing User model docs.
Backport of c0128e3a81cfb07238324b185958a88631e94963 from main.
2024-09-16 17:41:36 -03:00
Ronny V.
c12fe0a724 [5.1.x] Added example of email sending with additional capabilities to docs/topics/email.txt.
Co-authored-by: Mike Edmunds <medmunds@gmail.com>

Backport of f4813211e2d8017b56b7447f56ad17df3fae9aa3 from main.
2024-09-11 13:10:45 -03:00
Clifford Gama
bf45f06769 [5.1.x] Refs #35060 -- Fixed the update to update_fields in overridden save() method docs.
Regression in 3915d4c70d0d7673abe675525b58117a5099afd3.

Backport of 38c206515494cb28c48f77c10145a8aa9a172629 from main.
2024-09-11 13:25:21 +02: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
nessita
7acec02554 [5.1.x] Sorted alphabetically forms list in docs/topics/auth/default.txt.
Backport of 7adb6dd98d50a238f3eca8c15b16b5aec12575fd from main.
2024-08-22 09:15:28 -03:00
Natalia
da22e6cb3c [5.1.x] Fixed #35678 -- Removed "usable_password" field from BaseUserCreationForm.
Refs #34429: Following the implementation allowing the setting of
unusable passwords via the admin site, the `BaseUserCreationForm` and
`UserCreationForm` were extended to include a new field for choosing
whether password-based authentication for the new user should be enabled
or disabled at creation time.
Given that these forms are designed to be extended when implementing
custom user models, this branch ensures that this new field is moved to
a new, admin-dedicated, user creation form `AdminUserCreationForm`.

Regression in e626716c28b6286f8cf0f8174077f3d2244f3eb3.

Thanks Simon Willison for the report, Fabian Braun and Sarah Boyce for
the review.

Backport of 0ebed5fa95f53b87383901bbd9341ef3c974344f from main.
2024-08-19 12:41:23 -03: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 49815f70e4508ae21135f725da177fc2935de32c 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 304d25667433a59409e334a93acaaa9201840508 from main.
2024-08-05 10:36:41 -03:00
Kudz
b38a181481 [5.1.x] Relocated database setup details to install docs to simplify tutorial 2.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of 82c71f0168b1c132e499505609d285c6016ed4f2 from main.
2024-07-04 15:32:05 -03:00
lufafajoshua
c833cb36a2 [5.1.x] Fixed #34886 -- Modified sample use of lazy in delayed translations.
Modified example to use python standard library function
to lower the case of the string.

Backport of 136a5f94099e428dd57572ebd16905fb25ef227e from main.
2024-06-25 09:01:25 +02:00
Claude Paroz
b4dd76c315 [5.1.x] Migrated setuptools configuration to pyproject.toml.
This branch migrates setuptools configuration from setup.py/setup.cfg to
pyproject.toml. In order to ensure that the generated binary files have
consistent casing (both the tarball and the wheel), setuptools version
is limited to ">=61.0.0,<69.3.0".

Configuration for flake8 was moved to a dedicated .flake8 file since
it cannot be configured via pyproject.toml.

Also, __pycache__ exclusion was removed from MANIFEST and the
extras/Makefile was replaced with a simpler build command.

Co-authored-by: Nick Pope <nick@nickpope.me.uk>

Backport of 4686541691dbe986f58ac87630c3b7a04db4ff93 from main.
2024-06-24 22:31:17 -03:00
lufafajoshua
3d55f2966d [5.1.x] Fixed #35306 -- Documented fallback localization formats in templates when localization is disabled.
Backport of 3ac0e43207b4a1b9327ba12612005c285fbff7ee from main.
2024-06-24 18:08:50 +02:00
Sarah Boyce
8eb84abf22 [5.1.x] Restructured the EmailMultiAlternatives docs.
Backport of 1b21feeb7b490b3c75a06736362b05251ec172a9 from main.
2024-06-18 11:25:00 +02:00
Hisham Mahmood
c7fc9f20b4 Fixed #31405 -- Added LoginRequiredMiddleware.
Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Mehmet İnce <mehmet@mehmetince.net>
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-05-22 08:51:17 +02:00
r3a96
0e445badd5 Removed Redis parser_class reference from docs. 2024-05-08 08:41:13 +02:00
Cole D
e1431dd92e
Made confirmation prompt in squashmigrations consistent with other prompts.
Prior to this change, squashmigrations would use a [yN] prompt to ask
for user confirmation. A slash was added between the yes/no options
to make it consistent with other commands that print similar prompts.
2024-04-26 09:50:47 -03:00
minusf
bcad5ad92b
Fixed incorrect blockquotes in docs/topics/forms/index.txt. 2024-04-22 22:26:55 -03:00
Adam Johnson
ba4ffdc877
Refs #31710 -- Improved multiple file upload docs. 2024-04-04 19:18:36 -03:00
Matthias Kestenholz
5f3cdf219d
Fixed typo in docs/topics/signals.txt. 2024-03-28 13:45:04 -03:00
Giannis Terzopoulos
d658a3162f Fixed #35233 -- Moved template engine system checks to backend methods.
Thanks Adam Johnson for reviews.
2024-03-27 08:14:54 +01:00
Jon Janzen
f5c340684b Fixed #34901 -- Added async-compatible interface to session engines.
Thanks Andrew-Chen-Wang for the initial implementation which was posted
to the Django forum thread about asyncifying contrib modules.
2024-03-13 17:55:15 +01:00
Mitchina
2d3531af23 Corrected code-block directives in topics/forms/formsets.txt. 2024-03-08 08:07:39 +01:00
Dingning
549320946d Fixed #35030 -- Made django.contrib.auth decorators to work with async functions. 2024-03-07 09:59:33 +01:00
Mariusz Felisiak
177e649396
Fixed broken links and redirects in docs. 2024-03-06 08:50:21 +01:00
Josh Smeaton
6e195b800a Fixed #35267 -- Clarified time zone topic for PostgreSQL in docs.
The timezone documentation for Postgres mentions the behavior of
time zone conversion, but links to the wrong setting that controls the
behavior.

Postgres will not return datetimes in the time zone set by the
TIME_ZONE setting, but rather the time zone of the database connection,
which is defined by DATABASES.TIME_ZONE setting falling back to UTC.

This corrects the link in the documentation and adds note that there
are two distinct TIME_ZONE settings and the one most are familiar with
is not considered for PostgreSQL time zone conversion.
2024-03-05 11:22:54 +01:00
Leandro de Souza
368a8a3a83
Fixed #35261 -- Corrected Media JS example of object-based paths in docs.
`rel` attribute is not valid on `<link>` tags.
2024-03-04 18:59:49 +01:00
Salvo Polizzi
6e1ece7ed5 Fixed #35090 -- Deprecated registering URL converters with the same name. 2024-02-23 15:54:49 +01:00
Sulabh Katila
eceb5e2eea
Fixed #34806 -- Made cached_db session backend resilient to cache write errors.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-21 21:51:58 -03:00
Fabian Braun
e626716c28 Fixed #34429 -- Allowed setting unusable passwords for users in the auth forms.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-20 12:13:32 -03:00
Ebram Shehata
2152246c0a
Fixed typo in docs/topics/db/managers.txt. 2024-02-01 09:25:09 +01:00