1
0
mirror of https://github.com/django/django.git synced 2025-04-25 09:44:36 +00:00

3051 Commits

Author SHA1 Message Date
Daniel Hahler
2984e17c64 [4.1.x] Refs #18707 -- Corrected django.test.Client signature in docs.
Backport of 6f49b7b69b4e19b0362d4dff35ef7544b94c84a5 from main
2022-08-25 07:51:21 +02:00
Alex Morega
8a8a00388b [4.1.x] Fixed #33939 -- Used functools.partial() in transaction.on_commit() examples.
Backport of 7e6b537f5b92be152779fc492bb908d27fe7c52a from main
2022-08-23 11:58:53 +02:00
Youssef
bee09df39f [4.1.x] Fixed #33909 -- Corrected django.dispatch.receiver() signature.
Backport of 0cbbed49f4fbe60ddf9b452b310815708a64cc64 from main
2022-08-16 06:57:16 +02:00
Alessandro Baccini
8ea203d112 [4.1.x] Fixed typo in docs/topics/i18n/translation.txt.
Backport of c614e811f80ae5ce4e8f1461f54f0600707cf0e6 from main
2022-08-08 19:44:32 +02:00
rharri
088537710f [4.1.x] Fixed typo in docs/topics/testing/tools.txt.
Backport of 6654289f5b350dfca3dc4f6abab777459b906756 from main
2022-07-29 09:02:09 +02:00
Mariusz Felisiak
265c3eb602 [4.1.x] Fixed #33820 -- Doc'd "true"/"false"/"null" caveat for JSONField key transforms on SQLite.
Thanks Johnny Metz for the report.

Regression in 71ec102b01fcc85acae3819426a4e02ef423b0fa.
Backport of e20e5d1557785ba71e8ef0ceb8ccb85bdc13840a from main
2022-07-26 20:22:03 +02:00
Aristotelis Mikropoulos
501a3e6727 [4.1.x] Fixed typo in docs/topics/signals.txt.
Backport of 5eb6a2b33d70b9889e1cafa12594ad6f80773d3a from main
2022-07-02 16:46:49 +02:00
Pablo Montepagano
72358f0110 [4.1.x] Fixed #32749 -- Doc'd PyMemcacheCache defaults.
Backport of bb2c5f69f47466fa52f3cf2727d10b3ebd79a4da from main
2022-06-28 21:58:08 +02:00
Christopher Adams
aed1a73e0a [4.1.x] Fixed #33422 -- Improved docs about isolating apps.
Backport of 90d2f9f41671ef01c8e8e7b5648f95c9bf512aae from main
2022-06-27 20:53:06 +02:00
Mariusz Felisiak
6c0ee61797 [4.1.x] Fixed docs build with sphinxcontrib-spelling 7.5.0+.
sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set
of nodes for which the text is checked.

Backport of ac90529cc58507d9a07610809a795ec5fc3cbf8c from main
2022-06-27 07:44:27 +02:00
Grammy Jiang
3b332c6077 [4.1.x] Updated OWASP Top 10 link in security topic.
Backport of ef9121f3e6f62060d2904fb1811dbe7d74834686 from main
2022-06-16 06:35:52 +02:00
Tim Graham
566437adc9 [4.1.x] Fixed #33757 -- Clarified Client.post() file upload example.
Backport of 61badf1d58e79b84874afa6a1e00b79f20e786d1 from main
2022-06-02 19:04:18 +02:00
Tom Sparrow
33552c7a13 [4.1.x] Removed unnecessary semicolons in docs about performing raw SQL.
Backport of e89f9571352f42c7752b351ba1e651485e5e7c51 from main
2022-05-19 10:39:14 +02:00
Simon Willison
aa3197e5f1 [4.1.x] Refs #33646 -- Fixed link markup in queries topic doc.
Backport of 4525d689e9ad4667e1798004c25053966c73c2d2 from main
2022-05-18 17:41:34 +02:00
Mariusz Felisiak
02dbf1667c
Fixed #33691 -- Deprecated django.contrib.auth.hashers.CryptPasswordHasher. 2022-05-11 09:13:45 +02:00
Marc Seguí Coll
262fde94de Fixed #33622 -- Allowed customizing error messages for invalid number of forms.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-05-10 13:42:31 +02:00
David Smith
ec5659382a Fixed #32339 -- Added div.html form template. 2022-05-05 14:32:43 +02:00
Carlton Gibson
fde946daff Refs #32339 -- Restructured outputting HTML form docs.
In the topic doc, promoted the Reusable form templates section.

In the reference, re-grouped and promoted the default __str__()
rendering path, and then gathered the various as_*() helpers
subsequently.

Thanks to David Smith for review.
2022-05-04 11:52:48 +02:00
Mariusz Felisiak
37470bbd90
Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4. 2022-05-04 06:28:51 +02:00
David
ce586ed693 Removed hyphen from pre-/re- prefixes.
"prepopulate", "preload", and "preprocessing" are already in the
spelling_wordlist.

This also removes hyphen from double "e" combinations with "pre" and
"re", e.g. preexisting, preempt, reestablish, or reenter.

See also:
- https://ahdictionary.com/word/search.html?q=rerun
- https://ahdictionary.com/word/search.html?q=recreate
- https://ahdictionary.com/word/search.html?q=predetermined
- https://ahdictionary.com/word/search.html?q=reuse
- https://ahdictionary.com/word/search.html?q=reopening
2022-04-28 10:44:14 +02:00
David
51874dd160 Added backticks to code literals in various docs. 2022-04-28 10:44:14 +02:00
David
1c2bf80acb Changed "ie." to "i.e." in docs. 2022-04-28 10:37:06 +02:00
Carlton Gibson
476d4d5087 Refs #32339 -- Allowed renderer to specify default form and formset templates.
Co-authored-by: David Smith <smithdc@gmail.com>
2022-04-27 10:21:04 +02:00
Andrew Godwin
58b27e0dbb Fixed #33646 -- Added async-compatible interface to QuerySet.
Thanks Simon Charette for reviews.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-04-26 20:25:23 +02:00
Carlton Gibson
6b53114dd8 Refs #33646 -- Added example for async cross-thread connection access. 2022-04-20 14:07:14 +02:00
Theofilos Alexiou
470708f50d
Updated note about ListView pagination example in CBV docs.
Follow up to 0f0abc20be55d796ecfc3e7698e7ecfd9e9cdf88.
2022-04-19 21:38:49 +02:00
Carlton Gibson
9ffd4eae2c
Fixed #33611 -- Allowed View subclasses to define async method handlers. 2022-04-07 07:05:59 +02:00
Baptiste Mispelon
50e1e7ef8e Fixed #33348 -- Changed SimpleTestCase.assertFormError()/assertFormsetErrors() to take form/formset.
Instead of taking a response object and a context name for
the form/formset, the two methods now take the object directly.
2022-04-06 07:58:52 +02:00
Lucidiot
13a9cde133 Fixed #33613 -- Made createsuperuser detect uniqueness of USERNAME_FIELD when using Meta.constraints. 2022-04-01 11:39:41 +02:00
sarahboyce
ae506181f7 Fixed #32129 -- Adjusted the docs for session expiry helpers.
Updated the docs for `get_session_cookie_age`, `get_expiry_age`, and
`get_expiry_date` to clarify their intended usage by session backends
when saving the session.
2022-03-31 17:06:14 +02:00
David
c8459708a7 Refs #32339 -- Added use_fieldset to Widget. 2022-03-30 16:28:14 +02:00
Mariusz Felisiak
010a9d8a4f
Updated various links to HTTPS and new locations. 2022-03-29 07:46:08 +02:00
René Fleschenberg
eb07b5be0c Fixed #15619 -- Deprecated log out via GET requests.
Thanks Florian Apolloner for the implementation idea.

Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-03-29 06:42:14 +02:00
Carlton Gibson
bb61f0186d Refs #32365 -- Removed internal uses of utils.timezone.utc alias.
Remaining test case ensures that uses of the alias are mapped
canonically by the migration writer.
2022-03-24 06:29:50 +01:00
Mariusz Felisiak
39ae8d740e
Added missing backticks to function names. 2022-03-17 11:10:03 +01:00
David Smith
67b5f506a6
Changed some words to use inline markup. 2022-03-10 10:18:31 +01:00
Adam Johnson
a8c15481f4 Rewrote some references to "master".
Following d9a266d657f66b8c4fa068408002a4e3709ee669.
2022-03-08 14:50:06 +01:00
Ryan Heard
c6b4d62fa2 Fixed #29865 -- Added logical XOR support for Q() and querysets. 2022-03-04 12:55:37 +01:00
Nick Pope
847f46e9bf
Removed redundant QuerySet.all() calls in docs and tests.
Most QuerySet methods are mapped onto the Manager and, in general,
it isn't necessary to call .all() on the manager.
2022-02-22 10:29:38 +01:00
Philipp Bosch
737542390a
Fixed typo in docs/topics/i18n/translation.txt. 2022-02-18 13:03:41 +01:00
Claude Paroz
5d13cc540e
Refs #32074 -- Recommended aiosmtpd for minimal SMTP server.
Follow up to 569a33579c3cca5f801c544d9b52a34e3c779424.
2022-02-12 19:32:32 +01:00
Claude Paroz
4c76ffc2d6 Fixed #29490 -- Added support for object-based Media CSS and JS paths. 2022-02-10 08:48:27 +01:00
Aaron Chong
2d472ad05c Fixed #33495 -- Improved debug logging message about adapting handlers for middlewares.
It's the wrapped handler that's adapted to the wrapping middleware.
2022-02-09 12:10:26 +01:00
John Hollingsworth
d70b4bea18 Fixed #32518 -- Doc'd that QuerySet.contains() should not be overused.
Thanks Tim McCurrach for the idea.
2022-02-08 07:57:56 +01:00
Grace Hawkins
25514b604a
Refs #32243 -- Fixed typo in docs/topics/files.txt. 2022-02-05 11:19:22 +01:00
Joshua Massover
c9d6e3595c Fixed #32243 -- Added docs examples for manually saving Files. 2022-02-03 09:23:02 +01:00
Mike Lissner
e459b0f5a0
Improved example of using a custom queryset in Model formsets docs. 2022-02-03 06:58:14 +01:00
Theofilos Alexiou
3ba60951fc
Added Redis to warning about using cached sessions in docs. 2022-02-02 20:45:37 +01:00
tschilling
0dcd549bbe Fixed #30360 -- Added support for secret key rotation.
Thanks Florian Apolloner for the implementation idea.

Co-authored-by: Andreas Pelme <andreas@pelme.se>
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Co-authored-by: Vuyisile Ndlovu <terrameijar@gmail.com>
2022-02-01 11:12:24 +01:00
vgolubev
e87f57fdb8 Fixed #26142 -- Allowed model formsets to prevent new object creation.
Thanks Jacob Walls, David Smith, and Mariusz Felisiak for reviews.

Co-authored-by: parth <parthvin@gmail.com>
2022-01-27 20:45:21 +01:00