1
0
mirror of https://github.com/django/django.git synced 2025-04-24 17:24:37 +00:00

4128 Commits

Author SHA1 Message Date
Mariusz Felisiak
506f800ead [2.2.x] Refs #30083 -- Added a warning about performing queries in pre/post_init receivers.
Thanks Carlton Gibson the review.

Backport of fc1182af01c391ce33d7fcf51c756829c6a11d5b from master
2019-07-19 16:07:29 +02:00
Mariusz Felisiak
fa3ae446d9 [2.2.x] Refs #30083 -- Clarified database state of instances in signals.pre_init docs.
Backport of a2e1c17f193f5017e1f6fac7d860f1f9e34d7892 from master
2019-07-19 16:07:21 +02:00
Mariusz Felisiak
0088e59292 [2.2.x] Refs #30547 -- Clarified that partial UniqueConstraints don't affect model validation.
Backport of 230d75f59c43b9731465c4ec92ad714e301637b8 from master
2019-07-18 12:56:52 +02:00
Mariusz Felisiak
4814db40c1 [2.2.x] Fixed heading level typo in docs/ref/contrib/postgres/fields.txt.
Backport of ad4e83a6d1c0a212fae751a3125dff6e28b2390a from master
2019-07-16 15:08:40 +02:00
Hasan Ramezani
a39365c48e [2.2.x] Doc'd --no-input option for createsuperuser.
Backport of 8dd5877f58f84f2b11126afbd0813e24545919ed from master
2019-07-11 10:26:16 +02:00
Mariusz Felisiak
8f0b9e7f9a [2.2.x] Fixed typos in docs/ref/django-admin.txt.
Backport of 24e8f7f7d3063a3bbfe14774080bc89035b4a3e2 from master
2019-07-09 13:39:35 +02:00
Carlton Gibson
b6d8957356 [2.2.x] Fixed #28588 -- Doc'd User.has_perm() & co. behavior for active superusers.
Equivalent note for PermissionsMixin was added in d33864ed138f65070049a3ac20ee98e03a1442b9.
Backport of 4b32d039dbb59b3c3e76587df5c58150e752d9ac from master
2019-07-02 11:21:46 +02:00
aitoehigie
b9d1bb6955 [2.2.x] Fixed #30589 -- Clarified that urlize should be applied only to email addresses without single quotes.
Backport of c2f381ef17058e5cfea58ae507983d2e459a2888 from master
2019-07-01 12:03:56 +02:00
Carlton Gibson
77706a3e47 [2.2.x] Fixed CVE-2019-12781 -- Made HttpRequest always trust SECURE_PROXY_SSL_HEADER if set.
An HTTP request would not be redirected to HTTPS when the
SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings were used if
the proxy connected to Django via HTTPS.

HttpRequest.scheme will now always trust the SECURE_PROXY_SSL_HEADER if
set, rather than falling back to the request scheme when the
SECURE_PROXY_SSL_HEADER did not have the secure value.

Thanks to Gavin Wahl for the report and initial patch suggestion, and
Shai Berger for review.

Backport of 54d0f5e62f54c29a12dd96f44bacd810cbe03ac8 from master
2019-07-01 07:50:48 +02:00
Alexey Opalev
f3b036593f [2.2.x] Fixed typo in docs/ref/models/indexes.txt.
Backport of 2f91e7832fd2e51dfb75f6027b673a943e736ef0 from master
2019-06-24 09:01:12 +02:00
Claude Paroz
3b2701e4f2 [2.2.x] Removed unneeded non-breaking spaces added in 00169bc36
Backport of 8590726a5dd3087d40b549580703cd8c74f3d7b1 from master.
2019-06-22 10:28:26 +02:00
Chris Jerdonek
d200069b15 [2.2.x] Refs #30565 -- Doc'd HttpResponse.close() method.
Backport of 533311782fd0c974208490ec9d11da3bbe179dea from master
2019-06-20 11:49:52 +02:00
Swat009
c3a0f76d11 [2.2.x] Fixed #30547 -- Doc'd how Meta.constraints affect model validation.
Backport of 00169bc36156d4a32546229bf39de91213709eaf from master
2019-06-20 10:45:20 +02:00
Hasan Ramezani
c3a9d3050c [2.2.x] Fixed typos in signals and custom management commands docs.
Backport of a7038adbd02c916315b16939b835f021c2ee8880 from master
2019-06-19 08:41:51 +02:00
Hasan Ramezani
1ce04289f1 [2.2.x] Fixed typos and example in signals.pre_init docs.
Backport of 036362e0cfe74e4ab8a65b99eb2aa9c35371fc04 from master
2019-06-18 15:09:07 +02:00
Jon Dufresne
13e6040fd4 [2.2.x] Fixed intword example in docs/ref/contrib/humanize.txt.
Backport of 175656e166712db019a4704c4031510b9fd6b00a from master
2019-06-11 22:12:24 +02:00
Vyacheslav Ver
36766e1a28 [2.2.x] Fixed #30486 -- Fixed the default value of Aggregate.distinct and updated example of custom aggregate functions.
Backport of 76b3fc5c8d8dffb441aaa08f75833888be2107af from master
2019-06-11 12:02:02 +02:00
Mykola Nicholas
d5d22e1090 [2.2.x] Changed charset and collation link to MySQL docs.
Backport of f3a03d5b61bbf6a47c9aaf8113cff5b1befbcbc5 from master
2019-06-11 11:17:23 +02:00
Mariusz Felisiak
430f7e9dac [2.2.x] Removed redundant object descriptions to prevent warnings with Sphinx 2.1.0.
Backport of 5ab75adb900ca3fce50e65e60b11f2eb3ce9fd25 from master
2019-06-10 16:57:50 +02:00
Caio Ariede
d6d65c1e87 [2.2.x] Fixed #30505 -- Doc'd how changes in the order of Field.choices affect migrations.
Backport of 5248abe9b0425c1fc989c60a55860cdb4d135bcf from master
2019-06-04 14:57:08 +02:00
parth
5c85244eb9 [2.2.x] Fixed #28831 -- Doc'd that InlineModelAdmin methods' obj argument is the parent object.
Backport of 85436473066aae5d793caeced010ea4f45da4e79 from master
2019-05-31 13:21:13 +02:00
Brad Solomon
0f0d1cd772 [2.2.x] Fixed #30491 -- Clarified when save() on object with pk executes INSERT.
Backport of 67b6cb7723b2765cb776bd59d5603e3e63eefc2e from master
2019-05-28 11:28:28 +02:00
GwynBleidD
83605a17f0 [2.2.x] Refs #30062 -- Corrected UniqueConstraint signature in docs.
Backport of 5402061c80aa2ede08a7c6b3ff204646c5059cf7 from master
2019-05-20 10:54:19 +02:00
Jon Dufresne
ed221f7c97 [2.2.x] Changed docs to link to Python's description of iterable.
Backport of e86cc14bd36734d81c4e490a2453778e33b95a45 from master
2019-05-17 17:27:57 +02:00
Daniel Hepper
0aca34fc83 [2.2.x] Fixed #25633 -- Updated macOS Spatialite installation instructions.
Updated the Spatialite installation instruction to refer to the latest
available version from KyngChaos, as Gaia-SINS does not provide MacOS
binaries anymore.
Backport of ccb7f7c6d237900614290085cca103d9509b89b9 from master
2019-05-17 16:24:43 +02:00
Alex
4ef96cce6a [2.2.x] Fixed #30199 -- Adjusted QuerySet.get_or_create() docs to highlight atomicity warning.
Backport of 1686dce06c1f3587e90ea98816eddaa965fd9f45 from master
2019-05-17 12:25:12 +02:00
Jon Dufresne
08c8838727 [2.2.x] Changed tuple choices to list in docs.
Backport of 97d3321e89c8d4434927bdbc308db1ccffa99d3b from master
2019-05-15 14:41:01 +02:00
Daniel Musketa
4cfbd2c0c2 [2.2.x] Fixed typo in docs/ref/django-admin.txt.
Backport of 59de9494e7513de29bc71bd0b27445daff25a4b3 from master
2019-05-07 12:59:14 +02:00
Tobias Kunze
769f87fd24 [2.2.x] Fixed #26678 -- Doc'd that RelatedManager.add()/remove()/set() accepts the field the relation points to.
Backport of a44a21a22f20c1a710670676fcca798dd6bb5ac0 from master
2019-05-07 12:58:55 +02:00
Tobias Kunze
bf9e0e342d [2.2.x] Refs #20122 -- Corrected documentation of pluralize template filter.
Backport of e3968df527c4d378677f4784fb1bc0c86950fcf8 from master
2019-05-03 11:53:56 +02:00
Jacob Green
e45763193f [2.2.x] Fixed #30361 -- Increased the default timeout of watchman client to 5 seconds and made it customizable.
Made the default timeout of watchman client customizable via
DJANGO_WATCHMAN_TIMEOUT environment variable.

Backport of ed3c59097a01ed3f32f8a8bed95307fb5c181251 from master
2019-04-26 13:35:47 +02:00
Aarni Koskela
a4095dadc4 [2.2.x] Fixed #30312 -- Relaxed admin check from django.contrib.sessions to SessionMiddleware subclasses.
Backport of efeceba589974b95b35b2e25df86498c96315518 from master
2019-04-26 11:51:28 +02:00
Alasdair Nicol
3c3df7db8e [2.2.x] Fixed #30318 -- Added check for importability of arguments of custom error handler views.
Thanks to Jon on Stack Overflow for reporting the issue.

Backport of a5accc0368c6575b55976c06af36ed399c85c781 from master
2019-04-25 11:38:35 +02:00
Mariusz Felisiak
f24cf51661 [2.2.x] Fixed #30362 -- Noted partial indexes and constraints restrictions with abstract base classes.
Thanks Carlton Gibson for the review.

Backport of 5df3301aab9e1d1c386799263bef5cf013985c83 from master
2019-04-25 07:37:34 +02:00
Mariusz Felisiak
158cfebe87 [2.2.x] Fixed UniqueConstraint example in ref/models/constraints.txt.
Backport of f8f0f92ed9f73a025de599bd1a4965f2cc2ebbba from master
2019-04-25 07:37:21 +02:00
Luke Plant
46416554f3 [2.2.x] Changed tuple Mate.unique_together/permissions to lists in docs.
Backport of 0c916255eb4d94e06e123fafec93efdba45b1259 from master
2019-04-24 10:33:05 +02:00
Willy Njundong
ef38777ee8 [2.2.x] Updated SpatiaLite install instructions to suggest first package from recent Debian-based distributions.
Backport of 8180ffba21bf10f4be905cb0d4890dc2bcff2788 from master
2019-04-17 07:57:20 +02:00
Gary Donovan
0ba78c3989 [2.2.x] Fixed typo in docs/ref/models/instances.txt.
Backport of 516d858e7a3d01443cdc4e1eb4532b9d910f5e2b from master
2019-04-16 08:27:05 +02:00
sage
86de106864 [2.2.x] Fixed #30326 -- Doc'd how to avoid persistence of F() assignment.
Backport of bfae195b0a2c8dae755610a7e23add5c6bc37b5e from master
2019-04-15 09:13:56 +02:00
Bruno Furtado
bfe279293c [2.2.x] Fixed #30321 -- Added example of changed_data to forms docs.
Backport of 571ab44e8a8936014c22e7eebe4948d9611fd7ce from master
2019-04-09 22:54:02 +02:00
Tim Graham
53c83387cf [2.2.x] Refs #27807 -- Removed docs for User.username_validator.
The new override functionality claimed in refs #21379 doesn't work.
Forwardport of 714fdbaa7048c2321f6238d9421137c33d9af7cc from stable/1.10.x.
2019-04-07 20:03:01 -04:00
Mariusz Felisiak
de11488c52
[2.2.x] Fixed typo in docs/ref/settings.txt.
Backport of 4cbe2b06ce580423c62b6e49969f7e24d57d63b8 from master
2019-04-02 09:12:40 +02:00
Tim Graham
fc708f32f5 [2.2.x] Refs #30278 -- Fixed link in cached_property docs.
Backport of b9455b010e41d1c6e68faa11115212d50de3c231 from master.
2019-03-30 09:35:21 -04:00
Matthew Schinckel
f14170406c [2.2.x] Refs #30278 -- Doc'd behavior of del on an unaccessed cached_property.
Thanks to Curtis Maloney for the description of the problem.
Backport of c3c2ec54f59428cdf0a35abce594fd2ada35c209 from master
2019-03-30 09:29:23 -04:00
Nick Pope
5237da3416 [2.2.x] Removed unnecessary /static from links to PostgreSQL docs.
Backport of 198a2a9381a415f76c3170753270f5087ce4475a from master.
2019-03-29 21:50:28 -04:00
Tim Graham
2fb602f581 [2.2.x] Used extlinks for Django's source code.
Backport of a68c029e224cebe540da7447dbbd27993b4aa793 from master.
2019-03-28 20:39:38 -04:00
Tim Graham
ffdacc5879 [2.2.x] Fixed #30299 -- Removed jQuery dependency from getCookie() in CSRF docs.
Backport of 8e675e2bd8366adf5d0b579accfef75a7b1bc3bf from master
2019-03-28 19:57:01 -04:00
Nick Pope
6ac921bab0
[2.2.x] Refs #1660 -- Doc'd the LANGUAGES_BIDI setting.
Backport of 07daa487aeb7d41d69d7d1cf9d4b3648e299e4ac from master
2019-03-28 21:58:19 +01:00
Mariusz Felisiak
c910053a09
[2.2.x] Doc'd that HttpResponse accepts bytestrings.
Backport of e449c3a832ff2a4e3fa83cec6909d0476ed14110 from master
2019-03-28 10:02:24 +01:00
Mariusz Felisiak
609b7f1123
[2.2.x] Fixed "byte string" typo in various docs and comments.
Backport of 881362986a1ee8f650752de8471a895890b71f96 from master
2019-03-28 10:01:36 +01:00