2732 Commits

Author SHA1 Message Date
Jon Dufresne
21cc097403 [3.0.x] Fixed #31212 -- Updated psycopg links to HTTPS and new location.
Backport of 958977f662d878c299b3599282f005c3469dbef9 from master
2020-01-29 06:53:43 +01:00
Roy Smith
27739ad3f2 [3.0.x] Fixed #31184 -- Clarified URL matching behavior in URL dispatcher docs.
Backport of cf493e5c819f5ee49b96954f026bec722e19d9c3 from master
2020-01-24 12:22:51 +01:00
Mariusz Felisiak
8712027b22 [3.0.x] Refs #29998 -- Corrected auto-created OneToOneField parent_link in MTI docs.
Backport of d202846ced2f58d7a34ad80bfe2bde8a542a70b9 from master
2020-01-15 15:07:52 +01:00
Kal Sze
2efc832cdf [3.0.x] More accurate terminology ("logger" instead of "logging handler") in logging documentation.
Backport of aa6c620249bc8c2a6245c8d7b928b05e7e5e78fc from master
2020-01-09 15:28:55 +01:00
Jack Cushman
b11761e3cc [3.0.x] Clarified that ValueError raised by converter.to_python() means no match unless another URL pattern matches.
Backport of 196009c72c7144f25bc5e4029ef519db0190bb89 from master
2020-01-08 11:20:57 +01:00
Mark Bailey
e7d7e04d95 [3.0.x] Fixed #31103 -- Improved pagination topic documentation.
Backport of 0f0abc20be55d796ecfc3e7698e7ecfd9e9cdf88 from master
2020-01-07 10:34:19 +01:00
Jon Dufresne
eb40426259 [3.0.x] Removed unnecessary code-block directives in various docs.
Backport of 5e00bd1f7717149573df9607b848297a520881d3 from master
2019-12-23 14:48:16 +01:00
Garry Polley
77722711df [3.0.x] Added example of assertNumQueries() with "using" kwarg in testing topics docs.
Backport of 0b698eaea611d3bafa86d6d81d9203b482600ccb from master
2019-12-20 08:44:07 +01:00
Nick Pope
08b426aedb [3.0.x] Refs #28954 -- Remove remaining Jython documentation.
There is still no further progress on Jython 3 since support for Jython
was stripped in Django 2.0. The developers experimenting with Jython 3
have stated that they would need to start from scratch, so it doesn't
look as though it will materialize for years to come.

Python 2 and Django 1.11, the last version to support Python 2.7, will
both be end-of-life before Django 3.1 is released. We should no longer
instruct users to use an unsupported version of Django.

Backport of d8b6a76bc745b21c6cf2b29c220a91bcae7fd3d7 from master
2019-12-19 16:44:39 +01:00
Hasan Ramezani
fb260ad777 [3.0.x] Corrected some typos in documentation.
Backport of 70d95682b1be6a85abdeaea0205a897f7530f8bc from master
2019-12-18 11:37:32 +01:00
Hasan Ramezani
6cb30414bc [3.0.x] Fixed #31069, Refs #26431 -- Doc'd RegexPattern behavior change in passing optional named groups in Django 3.0.
Backport of 9736137cdc4b7528a0aca17415dc9798660eed81 from master
2019-12-12 14:49:13 +01:00
Mariusz Felisiak
e986e49e66 [3.0.x] Fixed #31061 -- Ignored positional args in django.urls.resolve() when all optional named parameters are missing.
Regression in 76b993a117b61c41584e95149a67d8a1e9f49dd1.

Thanks Claude Paroz for the report and Carlton Gibson for reviews.
Backport of 82a88d2f48e13ef5d472741d5ed1c183230cfe4c from master
2019-12-06 09:33:45 +01:00
Felipe Lee
87483757c8 [3.0.x] Fixed #20456 -- Added example of directly testing CBVs in topics docs.
Backport of a2e96f7969059fb4e621a1cd591fbdd0d4deae2e from master
2019-12-04 16:41:46 +01:00
Claude Paroz
e8f126aae1 [3.0.x] Removed leftover word in CBV mixins docs.
Backport of d83b585e5cc2b6dec49982670b86d6b4dd339342 from master
2019-12-04 09:15:35 +01:00
Andrew Godwin
9243435b5e [3.0.x] Fixed #31056 -- Allowed disabling async-unsafe check with an environment variable.
Backport of c90ab30fa1305481024b9c3c50b5a6ed6cd9a2f5 from master
2019-12-03 17:50:24 +01:00
Andrew Godwin
45de0c299b [3.0.x] Refs #30451 -- Doc'd asynchronous support and async-safety.
Backport of 635a3f8e6e0303e8a87586ef6be4ab0cc01d7c0d from master
2019-12-03 17:50:18 +01:00
Claude Paroz
830a5bcf15 [stable/3.0.x] Fixed typo in topics docs
Backport of b92d101bd868aa460d16d1196a798df7e5c1ea33 from master.
2019-12-03 16:51:45 +01:00
Sergey Fedoseev
314ad45c09 [3.0.x] Used 🎫 role in all tickets links.
Backport of abc51d44afcb8482c64c0bb8c1022f11e7eb2bbb from master
2019-11-26 14:43:27 +01:00
Mariusz Felisiak
ae2e13504b [3.0.x] Fixed #31008 -- Fixed typos in docs/topics/logging.txt.
Backport of 3e5b349535f011a51dc308898924786143000631 from master
2019-11-20 20:36:20 +01:00
Caio Ariede
5f24b18e6c [3.0.x] Fixed #27164 -- Fixed an example of using routers in multiple databases docs.
Make sure that AuthRouter includes ContentType in the same database.

Backport of 608e06023e6eaf75f744134a0fd203853260e616 from master
2019-11-20 11:51:33 +01:00
David Foster
c598ffd2e1 [3.0.x] Fixed #30828 -- Added how to remove/insert many-to-many relations in bulk to the database optimization docs.
Backport of 6a04e69e686cf417b469d7676f93c2e3a9c8d6a3 from master
2019-11-12 13:13:20 +01:00
Mariusz Felisiak
2c2afbe104 [3.0.x] Fixed typo in docs/topics/files.txt.
Backport of 08c0d8b16bb7e79074bc9c8ab4f0db97a94d336a from master
2019-11-11 11:52:18 +01:00
Shipeng Feng
59578ebaa0 [3.0.x] Fixed #30955 -- Doc'd that only concrete base models are stored in historical models bases.
Abstract models are removed from bases when generating historical model
state since 6436f1fad9ce51f18735106ac75aeea3d6d1f310.
Backport of 8058d9d7adb189fec75a4b57565f225996c7b22c from master
2019-11-08 09:43:20 +01:00
René Fleschenberg
87a10c3d6e [3.0.x] Replaced 'n_' prefix with 'number_of_' in docs/topics/db/queries.txt.
Backport of 367634f976ab43db93321bf4eb898449b670e291 from master
2019-11-07 09:41:01 +01:00
Mariusz Felisiak
2000ed5180 [3.0.x] Refs #30947 -- Changed tuples to lists in model Meta options examples in docs.
Follow up to 97d3321e89c8d4434927bdbc308db1ccffa99d3b.

Backport of e5cacb1f47cb3a2943bbc7685a630c84503b0d1b from master
2019-11-05 08:40:17 +01:00
Adam Johnson
b40272f5ea [3.0.x] Updated list of field types conversions in ModelForm docs.
Backport of 5a856669bf0574f612eea89e72a6b0a3d2cb80d9 from master
2019-11-04 11:03:58 +01:00
Mariusz Felisiak
453074bc1f [3.0.x] Corrected error message in Many-to-many relationships docs.
Backport of a370dbd9543703677697e80701b5dbec8c8e7da7 from master
2019-10-30 16:17:54 +01:00
Ken Whitesell
574f238582 [3.0.x] Fixed #30917 -- Clarified formsets topic documentation.
Backport of 4c762588ff6748a9a9bad111894fd418c43b74a9 from master
2019-10-30 09:01:14 +01:00
Hasan Ramezani
4037b4c2b5 [3.0.x] Fixed #13750 -- Clarified need to reopen models.ImageField.image file to access raw image data.
Backport of f57e174fa61e4c31213f6d0033fb9d647b463626 from master
2019-10-29 16:09:41 +01:00
Mariusz Felisiak
e5d3f3b83c [3.0.x] Fixed typo in docs/topics/files.txt.
Backport of bf7b3e2750e3392d112b34e076ee1a77c8adbe77 from master
2019-10-29 16:09:30 +01:00
Adam Johnson
c5ccd20865 [3.0.x] Documented the order in which signal receivers are called.
Backport of ab0fd3f58f751859cc7c5260decf0acca26513bf from master
2019-10-28 13:31:48 +01:00
Simon Charette
8d196e6fea [3.0.x] Refs #26207 -- Removed obsolete note about slow constructing a model with deferred fields.
This is not true since 7f51876 removed the necessity of creating
proxy model classes at runtime for each deferred field sets.
Backport of 35396a7f243eceec42cc90725ab573a7d9ac3b4c from master
2019-10-14 12:53:03 +02:00
Mac Chapman
56061decff [3.0.x] Fixed #11097 -- Added note about parent link fields in formsets for multi-table inheritance models.
Backport of 0b7378db1fdd7bfc7b78089811b3abb722c4ba95 from master
2019-10-09 12:54:45 +02:00
Caio Ariede
7d8d2b56be [3.0.x] Fixed #28790 -- Doc'd how to avoid running certain test classes in parallel.
Backport of dafdfd6a60638c4edcca7c4e65d11c0af654d759 from master
2019-10-08 12:32:25 +02:00
David Vaz
0c655f1df2 [3.0.x] Fixed #30597 -- Clarified how to unapply migrations.
Backport of 45554fd5c5c6a536db3ce70d78646d3dc398cf08 from master
2019-09-27 22:40:29 +02:00
Adam Johnson
f4b7acedbf [3.0.x] Documented admonition on when to use custom signals
Thanks Cesar Canassa for the suggestion and Aymeric Augustin for review.
Backport of 566fca14b3e1406f918898de5bb2b2382a44edaf from master
2019-09-25 10:39:55 +01:00
Mariusz Felisiak
fcaaff9862 [3.0.x] Refs #27910 -- Doc'd support for enumeration types serialization in migrations.
Backport of aad46ee274b0e294ac055cc199e6595de4ef4164 from master
2019-09-24 13:55:19 +02:00
Mariusz Felisiak
0098f26fdd [3.0.x] Refs #30350 -- Doc'd support for range serialization in migrations.
Backport of bc46e386c7aa496642d3ffc9e4f56ae5a46417a7 from master
2019-09-24 13:55:12 +02:00
Ryan Nowakowski
525c7e2afe [3.0.x] Updated the default cache key transformation in documentation.
Follow up to 6c69de80bdcd2744bc64cb933c2d863dd5e74a33.
Backport of 3f141719a198983a41840e3c2ea542f87c92e4c1 from master
2019-09-24 12:43:17 +02:00
Claude Paroz
1319124aa9 [3.0.x] Refs #26601 -- Used new-style middlewares in documentation.
Backport of d71497bb249a2c3ffec41e99089f5ae8e575f2d3 from master
2019-09-24 09:59:06 +02:00
Nick Pope
406dba04e1 Fixed #29406 -- Added support for Referrer-Policy header.
Thanks to James Bennett for the initial implementation.
2019-09-09 13:35:41 +02:00
Tobias Kunze
4a954cfd11 Fixed #30573 -- Rephrased documentation to avoid words that minimise the involved difficulty.
This patch does not remove all occurrences of the words in question.
Rather, I went through all of the occurrences of the words listed
below, and judged if they a) suggested the reader had some kind of
knowledge/experience, and b) if they added anything of value (including
tone of voice, etc). I left most of the words alone. I looked at the
following words:

- simply/simple
- easy/easier/easiest
- obvious
- just
- merely
- straightforward
- ridiculous

Thanks to Carlton Gibson for guidance on how to approach this issue, and
to Tim Bell for providing the idea. But the enormous lion's share of
thanks go to Adam Johnson for his patient and helpful review.
2019-09-06 13:27:46 +02:00
Shai Berger
72ebe85a26 Fixed #27910 -- Added enumeration helpers for use in Field.choices.
These classes can serve as a base class for user enums, supporting
translatable human-readable names, or names automatically inferred
from the enum member name.

Additional properties make it easy to access the list of names, values
and display labels.

Thanks to the following for ideas and reviews:

Carlton Gibson, Fran Hrženjak, Ian Foote, Mariusz Felisiak, Shai Berger.

Co-authored-by: Shai Berger <shai@platonix.com>
Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-09-04 14:42:49 +02:00
Nasir Hussain
25706d7285 Fixed #29714 -- Allowed using ExceptionReporter subclass with AdminEmailHandler. 2019-09-04 08:40:46 +02:00
Berker Peksag
400ec5125e Fixed #18763 -- Added ModelBackend/UserManager.with_perm() methods.
Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
2019-08-29 19:32:12 +02:00
Carlton Gibson
fa7ffc6cb3 Removed unneeded * markers from parameter names. 2019-08-29 12:49:16 +02:00
daniel a rios
b5a5c92c72 Fixed #30066 -- Enabled super user creation without email and password 2019-08-29 12:49:16 +02:00
Hasan Ramezani
03dbdfd9bb Fixed #29019 -- Added ManyToManyField support to REQUIRED_FIELDS. 2019-08-26 14:48:40 +02:00
François Freitag
9a88e43aeb Fixed broken links and redirects in documentation.
Removed reference to custom builds, feature removed in
8e6b3bba99.
2019-08-21 10:57:24 +02:00
Harrison88
1e429df748 Fixed #30695 -- Used relative path in default_storage docs example. 2019-08-20 12:01:10 +02:00