Commit graph

27538 commits

Author SHA1 Message Date
Claude Paroz
789de6050a [3.0.x] Added missing backtick in instances docs.
Backport of c7b97ac3a7 from master
2020-01-17 20:27:48 +01:00
Adam Johnson
3c05ab295d [3.0.x] Added note about incomplete HTML in tutorial 3.
Backport of 26be53dd89 from master
2020-01-17 15:48:42 +01:00
Takayuki Hirayama
f0e1a69c99 [3.0.x] Fixed #31171 -- Fixed wording in auto-escaping section of custom template tags docs.
Backport of 73563183c2 from master
2020-01-17 09:22:37 +01:00
Mariusz Felisiak
5b6778b8b9 [3.0.x] Refs #31097 -- Added django.db.models.Q import to contrib.postgres aggregates tests. 2020-01-17 09:13:11 +01:00
Anael Mobilia
69c6891140 [3.0.x] Added apps.py to project from tutorials in reusable apps docs.
Backport of a5a28de89d from master
2020-01-16 14:52:09 +01:00
Carlton Gibson
d74f383e9b [3.0.x] Clarified backport policy for regressions.
Backport of 7400da49a5 from master
2020-01-15 15:53:33 +01:00
Carlton Gibson
57468eaff3 [3.0.x] Fixed #31124 -- Fixed setting of get_FOO_display() when overriding inherited choices.
Regression in 2d38eb0ab9

Backport of 29c126bb34 from master
2020-01-15 15:36:28 +01:00
Mariusz Felisiak
8712027b22 [3.0.x] Refs #29998 -- Corrected auto-created OneToOneField parent_link in MTI docs.
Backport of d202846ced from master
2020-01-15 15:07:52 +01:00
Mariusz Felisiak
a24686987f [3.0.x] Refs #31136 -- Made QuerySet.values()/values_list() group only by selected annotation.
Regression in 0f843fdd5b.
Backport of 59b4e99dd0 from master
2020-01-15 09:33:36 +01:00
Carlton Gibson
6aac9f6b11 [3.0.x] Refs #31097 -- Added release notes for 2f565f84ac.
.

Backport of 927c903f3c from master
2020-01-14 14:36:25 +01:00
David Wobrock
0e6cf4393c [3.0.x] Fixed #31097 -- Fixed crash of ArrayAgg and StringAgg with filter when used in Subquery.
Backport of 2f565f84ac from master
2020-01-14 09:49:56 +01:00
Daniel Hahler
d7adaa399e [3.0.x] Fixed typo in docs/ref/django-admin.txt.
Backport of 20debf01bd from master
2020-01-13 12:39:44 +01:00
Mariusz Felisiak
92866682c6 [3.0.x] Fixed #31155 -- Fixed a system check for the longest choice when a named group contains only non-string values.
Regression in b6251956b6.

Thanks Murat Guchetl for the report.
Backport of 6f7998adc7 from master
2020-01-11 19:49:38 +01:00
Adam Johnson
16297e7d5e [3.0.x] Fixed #31154 -- Added support for using enumeration types in templates.
Enumeration helpers are callables, so the template system tried to call
them with no arguments.

Thanks Rupert Baker for helping discover this.

Backport of 5166097d7c from master
2020-01-10 09:13:36 +01:00
Kal Sze
2efc832cdf [3.0.x] More accurate terminology ("logger" instead of "logging handler") in logging documentation.
Backport of aa6c620249 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 196009c72c from master
2020-01-08 11:20:57 +01:00
Mariusz Felisiak
0379da59bd [3.0.x] Fixed #31141 -- Relaxed system check of translation settings for sublanguages.
Regression in 4400d8296d.

Thanks Enrique Matías Sánchez for the report.
Backport of 53d8646f79 from master
2020-01-08 08:06:33 +01:00
Mark Bailey
e7d7e04d95 [3.0.x] Fixed #31103 -- Improved pagination topic documentation.
Backport of 0f0abc20be from master
2020-01-07 10:34:19 +01:00
Mariusz Felisiak
f9110a1b6d [3.0.x] Fixed timezones tests for PyYAML 5.3+.
Backport of 8be477be5c from master
2020-01-07 09:55:15 +01:00
Claude Paroz
4853d0fdc4 [3.0.x] Corrected notes about default date/datetime/time input formats.
Backport of b23fb2c819 from master
2020-01-06 11:39:47 +01:00
Mariusz Felisiak
4f81f6d236 [3.0.x] Fixed #31136 -- Disabled grouping by aliases on QuerySet.values()/values_list().
Regression in fb3f034f1c.

Thanks Sigurd Ljødal for the report.
Backport of 0f843fdd5b from master
2020-01-04 20:49:43 +01:00
Simon Charette
02cda09b13 [3.0.x] Fixed #31133 -- Fixed crash when subtracting against a subquery annotation.
The subtract_temporals() database operation was not handling expressions
returning SQL params in mixed database types.

Regression in 3543129822.

Thanks Reupen Shah for the report.

Backport of 9bcbcd599a from master
2020-01-03 10:35:44 +01:00
Marya Belanger
d975415852 [3.0.x] Fixed typo in docs/index.txt.
First steps section is no longer below tutorials overview.

Backport of 03f6159407 from master
2020-01-03 07:54:25 +01:00
Mariusz Felisiak
09b4224e11 [3.0.x] Refs #31040 -- Fixed crypt.crypt() call in test_hashers.py.
An empty string is invalid salt in Python 3 and raises exception since
Python 3.9, see https://bugs.python.org/issue38402.
Backport of 1960d55f8b from master
2020-01-03 07:47:56 +01:00
Mariusz Felisiak
eb94e7ad6b [3.0.x] Added stub release notes for 3.0.3.
Backport of 69331bb851 from master
2020-01-02 08:41:58 +01:00
Mariusz Felisiak
7a375d34fe [3.0.x] Post-release version bump. 2020-01-02 08:26:31 +01:00
Mariusz Felisiak
a36974395e [3.0.x] Bumped version for 3.0.2 release. 2020-01-02 08:02:19 +01:00
Mariusz Felisiak
5738364fd6 [3.0.x] Added release date for 3.0.2.
Backport of 434a81d320 from master
2020-01-02 07:57:28 +01:00
Mariusz Felisiak
e2b72f85c2 [3.0.x] Fixed typo in ref/forms/widgets.txt.
Backport of ef1286e3e3 from master
2020-01-02 07:47:11 +01:00
Gabriel Augendre
8e432718b8 [3.0.x] Fixed #30780 -- Improved visibility of Getting Help FAQ in tutorials.
Backport of 307c63f9a7 from master
2019-12-31 09:26:13 +01:00
Gabriel Augendre
00b436adf4 [3.0.x] Refs #30780 -- Moved "First steps" section to the top of index page.
Backport of c07b4bce2c from master
2019-12-31 09:26:07 +01:00
Mads Jensen
222b56474d [3.0.x] Added guidelines for assertIs() usage.
Backport of ea44d86ed4 from master
2019-12-30 13:04:07 +01:00
Simon Charette
a04e6fb355 [3.0.x] Refs #29260 -- Doc'd Model.save() behavior change in Django 3.0.
Backport of 9e14bc2135 from master
2019-12-30 08:30:49 +01:00
Simon Charette
7db4ab8439 [3.0.x] Fixed #31071 -- Disabled insert optimization for primary keys with defaults when loading fixtures.
Model.save_base() is called directly when loading fixtures and assumes
existing rows will be updated. Branching of "raw" allows to maintain
the optimization introduced in #29260 while supporting this edge case.

Regression in 85458e94e3.

Thanks Reupen Shah for the report.

Backport of 5779cc938a from master
2019-12-30 08:30:44 +01:00
Mariusz Felisiak
0f8041abd5 [3.0.x] Fixed #31106 -- Fixed migrations crash on PostgreSQL 10+ when adding FK constraints inline and changing data.
This allows adding foreign key constraints inline and changing data in
the same migration on PostgreSQL 10+.

Regression in 738faf9da2.

Thanks Janne Rönkkö for the report and Simon Charette for the
implementation idea and review.
Backport of 22ce5d0031 from master
2019-12-23 23:30:30 +01:00
Jon Dufresne
eb40426259 [3.0.x] Removed unnecessary code-block directives in various docs.
Backport of 5e00bd1f77 from master
2019-12-23 14:48:16 +01:00
Mariusz Felisiak
1e45b06cfd [3.0.x] Refs #31115 -- Added test for nested subquery that references related fields.
Thanks Dmitriy Gunchenko for the report and Simon Charette for the
analysis and tests.

Regression in 5a4d7285bd.

Fixed in 5a4d7285bd.
Backport of 45bcc6feac from master
2019-12-23 12:18:52 +01:00
Simon Charette
7b065c41e4 [3.0.x] Fixed #31109 -- Disabled grouping by aliases on QuerySet.exists().
Clearing the SELECT clause in Query.has_results was orphaning GROUP BY
references to it.

Thanks Thierry Bastian for the report and Baptiste Mispelon for the
bisect.

Regression in fb3f034f1c.

Backport of 720de4d044 from master
2019-12-23 09:24:37 +01:00
Taoup
b1a309f6f0 [3.0.x] Fixed #31110 -- Fixed typo in docs/ref/models/expressions.txt.
Backport of cebd41e416 from master
2019-12-21 20:34:30 +01:00
Katie McLaughlin
407eeff9de [3.0.x] Refs #30767 -- Improved deployment documentation.
Backport of abeb4599af from master
2019-12-20 11:34:00 +01:00
Garry Polley
77722711df [3.0.x] Added example of assertNumQueries() with "using" kwarg in testing topics docs.
Backport of 0b698eaea6 from master
2019-12-20 08:44:07 +01:00
Garry Polley
d2100340f3 [3.0.x] Removed outdated information from contrib.sites docs.
Backport of d216e67b0c from master
2019-12-20 08:44:01 +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 d8b6a76bc7 from master
2019-12-19 16:44:39 +01:00
Simon Charette
fd9050589f [3.0.x] Fixed #31094 -- Included columns referenced by subqueries in GROUP BY on aggregations.
Thanks Johannes Hoppe for the report.

Regression in fb3f034f1c.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 5a4d7285bd from master
2019-12-19 11:10:33 +01:00
Hasan Ramezani
fb260ad777 [3.0.x] Corrected some typos in documentation.
Backport of 70d95682b1 from master
2019-12-18 11:37:32 +01:00
Mariusz Felisiak
efd9302b14 [3.0.x] Added stub release notes for 3.0.2.
Backport of 50a69efb2e from master
2019-12-18 10:52:37 +01:00
Adam Johnson
a334ae5d1e [3.0.x] Updated Pytest example in upgrade documentation.
Pytest changed their recommended entrypoint to 'pytest' in version 3.0.0 in 2016 : https://docs.pytest.org/en/latest/changelog.html#id1009. Also link the name since this is the only reference in the Django documentation at current.
Backport of ef3baf966d from master
2019-12-18 10:43:36 +01:00
Mariusz Felisiak
f21c132cd4 [3.0.x] Added CVE-2019-19844 to the security archive.
Backport of 5a2b9f0b54 from master
2019-12-18 10:38:37 +01:00
Mariusz Felisiak
afaf5b1f58 [3.0.x] Post-release version bump. 2019-12-18 09:27:32 +01:00
Mariusz Felisiak
03d64f1d9c [3.0.x] Bumped version for 3.0.1 release. 2019-12-18 09:21:54 +01:00