Commit Graph

27403 Commits

Author SHA1 Message Date
Carlton Gibson dd2ca8b0ea [3.0.x] Fixed #30931 -- Restored ability to override Model.get_FIELD_display().
Thanks Sergey Fedoseev for the implementation idea.

Regression in a68ea23101.

Backport of 2d38eb0ab9 from master
2019-11-04 08:15:03 +01:00
Gil Forcada Codinachs 0644b73e85 [3.0.x] Fixed typo in docs/ref/signals.txt.
Backport of 632d7bbd3d from master
2019-10-30 16:53:10 +01:00
Mariusz Felisiak 453074bc1f [3.0.x] Corrected error message in Many-to-many relationships docs.
Backport of a370dbd954 from master
2019-10-30 16:17:54 +01:00
André Ericson 3c5f8313c2 [3.0.x] Fixed #30927 -- Simplified an example of test for the deprecation warning with assertWarnsMessage().
Backport of 54a7b02112 from master
2019-10-30 13:52:57 +01:00
Ken Whitesell 574f238582 [3.0.x] Fixed #30917 -- Clarified formsets topic documentation.
Backport of 4c762588ff 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 f57e174fa6 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 bf7b3e2750 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 ab0fd3f58f from master
2019-10-28 13:31:48 +01:00
Mariusz Felisiak 76964cce20 [3.0.x] Refs #30908 -- Fixed the empty value of forms.FilePathField in docs.
Backport of daa9415f78 from master
2019-10-25 11:22:59 +02:00
Carlton Gibson 8740ff334a [3.0.x] Fixed #30902 -- Added __str__() for model choice enums.
Allows expected behavior when cast to str, also matching behaviour of
created instances with those fetched from the DB.

Thanks to Simon Charette, Nick Pope, and Shai Berger for reviews.

Backport of dbcd7b064e from master
2019-10-25 09:38:41 +02:00
Saad 495cdd6add [3.0.x] Fixed #30904 -- Doc'd caveat about using filtered queryset with select_for_update() on MySQL.
Backport of fc2b1cc926 from master
2019-10-25 09:00:20 +02:00
Hasan Ramezani 6df42e6187 [3.0.x] Fixed #30906 -- Fixed an example of using the template system to generate CSV.
Backport of 05c3ef26a2 from master
2019-10-25 08:12:15 +02:00
Bastien Vallet 2c397f35ed [3.0.x] Refs #29926 -- Added Python 3.8 to classifiers and tox.ini.
Backport of 37f02c47f8 from master
2019-10-24 13:09:56 +02:00
Carlton Gibson 06e3c6db86 [3.0.x] Fixed #30900 -- Skipped async-related tests on Windows using Python 3.8.0.
Refs https://bugs.python.org/issue38563.
Backport of e83c300a33 from master
2019-10-24 10:43:37 +02:00
Hannes Ljungberg 318d186d7e [3.0.x] Fixed #30903 -- Fixed migrations crash on PostgreSQL when adding Index with opclasses and ordering.
Backport of fa5f3291e7 from master
2019-10-24 09:51:33 +02:00
Mariusz Felisiak b3e8dafe06 [3.0.x] Added tblib to the list of test suite dependencies in documentation.
Backport of 2a54ce72f9 from master
2019-10-23 15:27:02 +02:00
Mariusz Felisiak 517d31516a [3.0.x] Refs #29926 -- Bumped minimum tblib version to 1.5.0 in test requirements.
Backport of 25903e41fb from master
2019-10-23 15:26:54 +02:00
Mariusz Felisiak 753a34b42a [3.0.x] Refs #29926 -- Skipped RemoteTestResultTest.test_add_failing_subtests() on Python 3.8+ and tblib <= 1.4.0.
Backport of 2847d2c760 from master
2019-10-22 15:34:44 +02:00
Antonio Dudarev 213a39b4df [3.0.x] Refs #13724 -- Corrected QuerySet signature in docs.
Backport of 6c23b43655 from master
2019-10-22 14:24:10 +02:00
Mariusz Felisiak 336c9cb7f4 [3.0.x] Fixed #30562 -- Doc'd MariaDB support for GIS spatial lookups.
Backport of 1c5ec221a4 from master
2019-10-16 16:34:47 +02:00
Mariusz Felisiak 8047961d7c [3.0.x] Refs #28436 -- Corrected docs regarding MySQL support of distance lookups.
Backport of 440603a4bc from master
2019-10-16 14:40:16 +02:00
Mariusz Felisiak 76e159e2c3 [3.0.x] Refs #22423 -- Corrected crosses lookup support on MySQL in documentation.
Support was added in 15715bf.
Backport of 5becb36a79 from master
2019-10-16 13:57:04 +02:00
Mariusz Felisiak 74c5ddc657 [3.0.x] Refs #27910 -- Added __init__.py file for model_enums tests.
Backport of 1877ec1875 from master
2019-10-15 21:28:17 +02:00
Carlton Gibson aba6fef430 [3.0.x] Moved "Sign the CLA" to the bottom of New Contributor First Steps.
As discussed on the mailing list, step 1 of First Steps shouldn't be
"Find a printer".

https://groups.google.com/d/topic/django-developers/owOqFmxufgs/discussion
Backport of adfd920cc5 from master
2019-10-15 14:11:11 +02:00
Ad Timmering 18631226da [3.0.x] Fixed #30816 -- Doc'd how to create projects with a local copy of Django.
Backport of dee687e93a from master
2019-10-15 12:54:44 +02:00
Graham Healy 9adb80efee [3.0.x] Fixed #30808 -- Added the Django Forum to contributing index.
Backport of 90abdba086 from master
2019-10-15 09:08:08 +02: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 35396a7f24 from master
2019-10-14 12:53:03 +02:00
Mariusz Felisiak e17e19cfa4 [3.0.x] Bumped version for 3.0 beta 1. 2019-10-14 12:00:20 +02:00
Mariusz Felisiak bf8c562209 [3.0.x] Updated man page for Django 3.0 beta. 2019-10-14 11:55:27 +02:00
Mariusz Felisiak 4a756cbc38 [3.0.x] Fixed #30870 -- Fixed showing that RunPython operations are irreversible by migrate --plan.
Thanks Hasan Ramezani for the initial patch and Kyle Dickerson for the
report.

Backport of 06d34aab7c from master
2019-10-14 11:43:15 +02:00
Mariusz Felisiak 4a263af64e [3.0.x] Isolated migrations.test_commands.MigrateTests.test_migrate_plan.
Backport of 05186c03a3 from master
2019-10-14 11:43:06 +02:00
Simon Charette bab3ad54ff [3.0.x] Fixed #30868 -- Prevented unnecessary AlterField when renaming a referenced pk.
Regression introduced by dcdd219ee1, refs #25817.

Thanks Carlos E. C. Leite for the report and Mariusz for the bisect.

Backport of 2839659b42 from master
2019-10-14 08:27:36 +02:00
René Fleschenberg e0a869b208 [3.0.x] Clarified that SECURE_REDIRECT_EXEMPT patterns should not include leading slashes.
Backport of d232fd76a8 from master
2019-10-11 16:07:05 +02:00
Etienne Chové 651299e1ef [3.0.x] Fixed #30014 -- Fixed ModelChoiceField validation when initial value is a model instance.
Thanks Carlton Gibson for reviews.

Backport of e7cdb0cd7e from master
2019-10-11 14:33:32 +02:00
Etienne Chové 82ba905db3 [3.0.x] Added ModelChoiceField test for validation with to_field_name.
Backport of a12f9cd95a from master
2019-10-11 14:33:16 +02:00
Louise Grandjonc cf7ef5d258 [3.0.x] Fixed #30826 -- Fixed crash of many JSONField lookups when one hand side is key transform.
Regression in 6c3dfba892.

Backport of 7d1bf29977 from master
2019-10-11 11:51:14 +02:00
Hasan Ramezani c1cfec6b50 [3.0.x] Fixed #30854 -- Fixed QuerySet.select_related() with multiple FilteredRelations.
Backport of 6a75cea76a from master.
2019-10-11 09:18:23 +02:00
Mariusz Felisiak 0dede9e981 [3.0.x] Fixed typos in docs/releases/3.0.txt.
Backport of 2a6f45e08e from master
2019-10-10 14:25:41 +02:00
Kees Hink fffce1ac4c [3.0.x] Fixed #27086 -- Doc'd fix for test suite hang on macOS.
Backport of 5d9cf79baf from master
2019-10-09 15:49:19 +02:00
Carlton Gibson 6801166a30 [3.0.x] Added note to check Python version in unit tests troubleshooting section.
At DjangoCon US 2019 sprints, a number of contributors hit problems with an outdated Python.

Backport of 06e087c3de from master
2019-10-09 15:49:09 +02:00
Carlton Gibson 7ded25d713 [3.0.x] Corrected section indentation in unit tests contributor docs.
Backport of b39c39e82a from master
2019-10-09 15:48:58 +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 0b7378db1f from master
2019-10-09 12:54:45 +02:00
Carlton Gibson 71489a522a [3.0.x] Fixed #30858 -- Clarified that AdminEmailHandler processes all 5xx responses.
Backport of 94eae4e563 from master
2019-10-09 10:16:03 +02:00
Caio Ariede 7d8d2b56be [3.0.x] Fixed #28790 -- Doc'd how to avoid running certain test classes in parallel.
Backport of dafdfd6a60 from master
2019-10-08 12:32:25 +02:00
Hasan Ramezani 7c70aa8f63 [3.0.x] Fixed #30839 -- Fixed Field.__deepcopy__() so forms don't share error messages.
Backport of a28d1b38e5 from master
2019-10-08 10:28:30 +02:00
Caio Ariede 282138a7bb [3.0.x] Fixed #28273 -- Doc'd fast nullable column creation with defaults.
Backport of 06909fe084 from master
2019-10-07 14:37:16 +02:00
Tamer Sherif 3ea957b543 [3.0.x] Refs #10348 -- Doc'd that ModelAdmin ignores list_select_related when QuerySet.select_related() was already called.
Backport of e3f647f4d5 from master
2019-10-07 11:10:38 +02:00
Katie McLaughlin 4917b53e50 [3.0.x] Made minor edits and small fixes to docs/faq/install.txt.
Backport of f52022ad96 from master
2019-10-04 11:38:50 +02:00
Katie McLaughlin 717d845737 [3.0.x] Fixed #30834 -- Added explicit list of supported databases to the databases docs.
Backport of 9dca904a5b from master
2019-10-03 19:48:45 +02:00
Hasan Ramezani 30271a47da [3.0.x] Refs #27914 -- Fixed serialization of nested enum.Enum classes in migrations.
Backport of 6452112640 from master
2019-10-03 11:17:10 +02:00