1
0
mirror of https://github.com/django/django.git synced 2025-03-21 23:00:44 +00:00

28352 Commits

Author SHA1 Message Date
Carlton Gibson
b6be810643 [3.1.x] Adjusted URL example in tutorial.
No need for the example to be ASP specific.

Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
Backport of 8c49c3f7257f14e071b619f90cd4d8cae6d04e74 from master
2020-06-02 12:27:15 +02:00
Jon Dufresne
d7ee69d2f2 [3.1.x] Fixed #31643 -- Changed virtualenv doc references to Python 3 venv.
Backport of 9f4ceee90aaa2a6af8321417d79330f2fdc620ea from master
2020-06-02 11:53:14 +02:00
Chris May
fe07357ef9 [3.1.x] Fixed typo in docs/ref/templates/language.txt.
Backport of ecaac9e42f497be04ddc72dfebb6e397ccca9517 from master
2020-06-01 20:52:25 +02:00
Carles Pina
56af541790 [3.1.x] Fixed #31536 -- Fixed rendering of disabled AdminFileWidget and ClearableFileInput.
Backport of e46c2326c8cfc038e015f55fd050ab5d7eb91b62 from master
2020-06-01 12:48:26 +02:00
Nikita Sobolev
22dac456f3 [3.1.x] Made small improvement to docs/topics/db/multi-db.txt.
Backport of 682b295c6c3f5a2182bdc8192f0b8b65610fe4b1 from master
2020-06-01 10:20:54 +02:00
Fabio Sangiovanni
c3bd48c4cb [3.1.x] Made minor edits to TemplateResponseMixin.get_template_names() docs.
Backport of 19ceabefd451bc8473a8ac96b04b46a436a7c1b5 from master
2020-06-01 10:17:08 +02:00
Carlton Gibson
98fada7244 [3.1.x] Fixed #31570 -- Corrected translation loading for apps providing territorial language variants with different plural equations.
Regression in e3e48b00127c09eafe6439d980a82fc5c591b673.

Thanks to Shai Berger for report, reproduce and suggested fix.

Backport of dd1ca50b096bf0351819aabc862e91a9797ddaca from master
2020-06-01 09:27:02 +02:00
Fabio Sangiovanni
9ce281d21f [3.1.x] Added SingleObjectMixin.query_pk_and_slug to CBV flattened index.
Backport of df188824738ff5e54baf2d61f6a7dff51a20f068 from master
2020-06-01 07:49:26 +02:00
David Smith
74baa468e0 [3.1.x] Removed redundant pyenchant dependency in spelling check docs.
Backport of 7514852767c4723322f5799a2bd25b7ca263e3b0 from master
2020-06-01 07:08:25 +02:00
Jon Dufresne
0793f93bbe [3.1.x] Corrected FAQ link in docs/faq/help.txt.
Without the leading slash, was pointing to Python's FAQ
https://docs.python.org/3/faq/index.html.
Backport of 8dabdd2cc559a66b519e2a88b64575d304b96ebe from master
2020-05-29 21:24:21 +02:00
Jon Dufresne
df1bb7ab21 [3.1.x] Changed some doc links to use intersphinx.
Backport of 494ba27b5fe14e42e815edde6bd4a1216b29c935 from master
2020-05-29 21:10:34 +02:00
Simon Charette
aca675ad33 [3.1.x] Refs #21171 -- Made Collector.delete() rollback in the correct database.
Regression in c7dd8490b882b2cefdc7faf431dc64c532b79c9.
Backport of f8ef5f2c86683bef3b200fd864efc14f1fbbc23b from master
2020-05-29 10:25:20 +02:00
Mariusz Felisiak
bd389a832a [3.1.x] Refs #31040, Refs #31224 -- Prevented cycles in exceptions chain.
Async exception handling was raising an exception that was creating a
cycle in the exception chain (by re-raising an exception in
sync_to_async that was already being handled).

Thanks Chris Jerdonek for detailed analysis.
Backport of d94a9aa0557a459a5b9b7b82a8c043de14f8b1a0 from master
2020-05-28 13:06:12 +02:00
Tom Carrick
dc3234be48 [3.1.x] Refs #31034 -- Improved accessibility of admin navigation sidebar.
Backport of 780473d75625d014cbe9b0acdea40b7a5970d5d8 from master
2020-05-28 11:20:39 +02:00
Mariusz Felisiak
15fc360b91 [3.1.x] Fixed isolation of test_migrate_fake_initial.
Backport of 42de52affe20e399554d984cc7848bf8e0368b41 from master
2020-05-28 09:33:17 +02:00
David Smith
bd766ac8bf [3.1.x] Fixed #31628 -- Updated Windows install guide to recommend venv.
Backport of 922ff51f5ac34205f454d7b5786cef57f32b6ca3 from master
2020-05-27 11:20:13 +02:00
Frantisek Holop
a79d0c8c81 [3.1.x] Refs #31615 -- Improved creating extension docs.
Backport of f3ed42c8ad3757e7238bf2f326532f5b129aa102 from master
2020-05-27 11:14:31 +02:00
Carlton Gibson
36d5646aff [3.1.x] Updated expected release dates for 3.0.7 and 2.2.13.
Backport of 9d55ae00d3dad9e93714add69ab7e48e7b0bcafa from master
2020-05-27 10:20:37 +02:00
Mariusz Felisiak
ebf553397a [3.1.x] Fixed some formatting issues in docs.
Backport of 803e70b1adb71d86eb5bbb4074ef5ff96ae6e55d from master
2020-05-27 09:07:33 +02:00
Laurent Tramoy
df88f24b1f [3.1.x] Fixed #31614 -- Fixed aliases ordering by OrderBy() expressions of combined queryset.
Backport of 2aac176e86204785f0f2ec4838049d8fed70870e from master
2020-05-26 23:35:34 +02:00
Nan Liu
114da2d045 [3.1.x] Fixed #31416 -- Made autodetector find dependencies for MTI model creation on base fields removal.
Removing a base field must take place before adding a new inherited
model that has a field with the same name.

Backport of 33c365781abbcc1b21a31b31d95d344a174df0d5 from master
2020-05-26 08:34:14 +02:00
René Fleschenberg
ccf3cecbaf [3.1.x] Refs #23097 -- Used new octal format in FILE_UPLOAD_PERMISSIONS docs.
Backport of f24b59267be2e5fc5bd1252efda3aed19f860813 from master
2020-05-25 21:04:28 +02:00
Claude Paroz
691142364f [3.1.x] Removed instructions for unsupported Apache versions.
Backport of cfa0c0e252c680f574c8eea1118e6d11bf7e5fa5 from master
2020-05-25 08:57:14 +02:00
Simon Charette
d91095def4 [3.1.x] Fixed #31624 -- Avoided subquery usage on QuerySet.all().delete().
Thanks Adam Johnson for the report.

Regression in 7acef095d73322f45dcceb99afa1a4e50b520479.

Backport of 972000420e08703dd4981466ff67adcd5a61ad4b from master
2020-05-25 08:47:51 +02:00
Jon Dufresne
6e3c543909 [3.1.x] Refs #31534 -- Improved django.conf.urls.url() warning message with stacklevel=2.
Use stacklevel=2 to show the calling site.
Backport of 437196da9a386bd4cc62b0ce3f2de4aba468613d from master
2020-05-23 18:18:54 +02:00
Carlton Gibson
b205c0b0cc [3.1.x] Updated list of third-party DB backends.
* Alphabetized third-party DB backend list.
* Added backticks around single-word link texts to ease visual/machine sorting.
* Added CockroachDB to list of third-party DB backends.
* Updated third-party DB backend URLs.

Thanks to Nick Pope and Tim Graham for the review.
Backport of 6dcfa70cac29c854fc5169bed1cf6479eabdb8c1 from master
2020-05-21 20:55:25 +02:00
Hasan Ramezani
a6c773aa86 [3.1.x] Fixed #31608 -- Doc'd that form ISO 8601 datetime parsing always retains tzinfo.
Backport of 643207efaebbff4e7c3ebcbf9ca49fb6197137e1 from master
2020-05-21 20:49:30 +02:00
Michael Manfre
0e0005172e [3.1.x] Added notes related to security pre-notification list requests.
Backport of 0e893248b28e30bf562d29e6d5745ffad4b1a1eb from master
2020-05-21 10:31:29 +02:00
Fran Hrzenjak
47e21d339f [3.1.x] Fixed #31597, #31603 -- Corrected admin clear all filters link behavior.
- Show "Clear all filters" only when any filter is selected.
- Preserve query string not related with filters.

Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>

Backport of 4484bc1b2f84da6442c9c2bfd95d3f1f7d8f96f7 from master
2020-05-20 21:35:09 +02:00
Claude Paroz
ff9cdb70cf [3.1.x] Added Kyrgyz language.
Thanks Soyuzbek orozbek uulu for contributing that support.
Backport of 3460ea49e839fd6bb924c48eaa1cd3d6dc888035 from master
2020-05-20 12:30:18 +02:00
Mariusz Felisiak
d5231719e0 [3.1.x] Refs #31607 -- Added release notes for a125da6a7c79b1d4c55677d0bed6f9b1d7d77353.
Backport of 8328811f048fed0dd22573224def8c65410c9f2e from master
2020-05-20 09:19:08 +02:00
Mariusz Felisiak
937314dc05 [3.1.x] Fixed #31607 -- Fixed evaluated Subquery equality.
Regression in 691def10a0197d83d2d108bd9043b0916d0f09b4.

Backport of a125da6a7c79b1d4c55677d0bed6f9b1d7d77353 from master
2020-05-19 22:50:36 +02:00
Carlton Gibson
844e0591f9 [3.1.x] Fixed #31591 -- Clarified "reverse" lookup name in making queries docs.
Backport of 5af17babb0f895cf129fdeee92548d2ac12e78e2 from master
2020-05-19 20:27:29 +02:00
Hannes Ljungberg
7ee19a0f78 [3.1.x] Fixed #31601 -- Fixed SearchHeadlineTests on PostgresSQL 9.6.18+, 10.13+, 11.8+, and 12.3+.
Backport of 952afc166c8d79013b7181e35aab638145d2adc5 from master
2020-05-19 08:04:27 +02:00
xncbf
03bfcbad88 [3.1.x] Fixed #31577 -- Clarified docs about bounds of RangeFields.
Backport of 4029bcd6b20f75a78f9a5829d7826c79aeb20732 from master
2020-05-18 20:42:33 +02:00
Jon Dufresne
3f977c5837 [3.1.x] Updated docutils link to HTTPS and new location.
Backport of 7070d4611471db701ed0d51d23e72d5f5c647085 from master
2020-05-18 08:46:51 +02:00
Tim Graham
5480fab290 [3.1.x] Refs #12990 -- Added DatabaseFeatures.has_json_operators.
CockroachDB also has them.
Backport of f59a2b730685fc62c5cb44101f54faf8921d9bc7 from master
2020-05-18 08:12:57 +02:00
Jon Dufresne
16716551bd [3.1.x] Refs #31034 -- Used === in nav_sidebar.js admin JS to avoid possible coercion issues.
Backport of e46f700e39cef3856f34b56dc5d563d3e27648ac from master
2020-05-18 08:09:47 +02:00
kjpc-tech
ef19aec2ca [3.1.x] Fixed #31590 -- Fixed ModelAdmin.date_hierarchy crash with an empty QuerySet.
Regression in 55cdf6c52db07f29128741b8734a523ed042e465.

Backport of 099bce1bf0b9802b7159beb9260b9b9e344bf497 from master
2020-05-15 07:07:49 +02:00
Mariusz Felisiak
b46b0f80e8 [3.1.x] Fixed #31584 -- Fixed crash when chaining values()/values_list() after Exists() annotation and aggregation on Oracle.
Oracle requires the EXISTS expression to be wrapped in a CASE WHEN in
the GROUP BY clause.

Regression in efa1908f662c19038a944129c81462485c4a9fe8.
Backport of 3a941230c85b2702a5e1cd97e17251ce21057efa from master
2020-05-14 15:10:28 +02:00
Mariusz Felisiak
bebb7d4d7e [3.1.x] Bumped version for 3.1 alpha 1 release. 3.1a1 2020-05-14 11:05:05 +02:00
Jon Dufresne
1c2d0fdf3e [3.1.x] Fixed #31575 -- Added system check for admin sidebar request context processor dependency.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>

Backport of d522b51c401429c169d88742178a9b3777903d9e from master
2020-05-14 11:01:22 +02:00
Jon Dufresne
c9a9d042e5 [3.1.x] Refs #31034 -- Documented admin requires django.template.context_processors.request.
Required since d24ba1be7a53a113d19e2860c03aff9922efec24.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>

Backport of e341bed606d8ab2864838795276692cf86b08687 from master
2020-05-14 11:01:17 +02:00
Simon Charette
3913acdb29 [3.1.x] Fixed #31568 -- Fixed alias reference when aggregating over multiple subqueries.
691def10a0197d83d2d108bd9043b0916d0f09b4 made all Subquery() instances
equal to each other which broke aggregation subquery pushdown which
relied on object equality to determine which alias it should select.

Subquery.__eq__() will be fixed in an another commit but
Query.rewrite_cols() should haved used object identity from the start.

Refs #30727, #30188.

Thanks Makina Corpus for the report.

Backport of adfbf653dc1c1d0e0dacc4ed46602d22ba28b004 from master
2020-05-14 10:26:05 +02:00
Simon Charette
8cb87a3f7c [3.1.x] Fixed #31566 -- Fixed aliases crash when chaining values()/values_list() after annotate() with aggregations and subqueries.
Subquery annotation references must be resolved if they are excluded
from the GROUP BY clause by a following .values() call.

Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.

Thanks Makina Corpus for the report.

Backport of 42c08ee46539ef44f8658ebb1cbefb408e0d03fe from master
2020-05-14 08:39:21 +02:00
Mariusz Felisiak
6227173542 [3.1.x] Added stub release notes for 2.2.13.
Backport of 50798d43898c7d46926a4292f86fdf3859a433da from master
2020-05-14 06:30:02 +02:00
Mariusz Felisiak
e078870757 [3.1.x] Fixed #31576 -- Fixed selenium tests with headless mode.
Horizontal scrollbar doesn't appear with the headless mode on small
windows, that's why window.scrollTo() is not an option for these
tests.

Tests changed after adding a navigation sidebar in
46fe506445666d8097945f0c1e8be11cfd644b28.
Backport of 18eb852874a073001cb509f64002b6d82bdc760b from master
2020-05-13 15:46:56 +02:00
Nick Pope
4eb5e4ee4f [3.1.x] Used :envvar: role and .. envvar:: directive in various docs.
Backport of fbdb032de266ba5f82e061ab204f6c622889d563 from master
2020-05-13 09:38:59 +02:00
Nick Pope
345fa40cb5 [3.1.x] Used :mimetype: role in various docs.
Backport of feb91dbda13974f84eac52dccdc0de1ddb636616 from master
2020-05-13 09:38:49 +02:00
Nick Pope
15d76dc2ab [3.1.x] Used :pep: role in various docs.
Backport of a9337b4add01e50ed8ff8d3ef44099a08cba475c from master
2020-05-13 09:38:40 +02:00