Commit Graph

30150 Commits

Author SHA1 Message Date
Abhyudai 44d11e5b2c [4.0.x] Fixed #33149 -- Made test runner --pdb option work with subTest().
Thanks Lucidot for the report and Mariusz Felisiak for the initial
patch.
Backport of 7872971dfb from main
2021-10-11 10:48:21 +02:00
Seonghyeon Cho 1aada25eeb [4.0.x] Refs #32900 -- Restored '[y/N]' in questioner prompt when merging migrations.
Regression in 02bc7161ec.

Backport of aa0d796e37 from main
2021-10-11 09:40:06 +02:00
Nick Frazier fe97f8bb62 [4.0.x] Improved docs regarding UTF-8 support with Apache and mod_wsgi.
Backport of bf4be3711a from main
2021-10-08 15:50:00 +02:00
Christophe Henry f2a59630f4 [4.0.x] Fixed #33151 -- Fixed createsuperuser crash for many-to-many required fields in non-interactive mode.
Backport of df2d2bc95c from main
2021-10-07 13:11:18 +02:00
David Smith fc325a1981 [4.0.x] Refs #31026 -- Improved BoundField.label_tag() docs.
Backport of 9be36f8044 from main
2021-10-07 06:11:51 +02:00
Maxim Milovanov f6c7e75cdf [4.0.x] Fixed #33156 -- Used sessionStorage to preserve quick filter for admin's navigation sidebar.
Backport of 1c802ca2a9 from main
2021-10-06 09:02:45 +02:00
Mariusz Felisiak ab07cb4b54 [4.0.x] Refs #32074 -- Doc'd Python 3.10 compatibility in Django 3.2.x.
Backport of 604df4e0ad from main.
2021-10-05 13:31:57 +02:00
Mariusz Felisiak c8d0a8c9b6 [4.0.x] Refs #32074 -- Added Python 3.10 to classifiers and tox.ini.
Backport of 15987c9c53 from main
2021-10-05 09:59:48 +02:00
Carlton Gibson 263a4bab37 [4.0.x] Added stub release notes for Django 3.2.9.
Backport of c113f7fb0d from main
2021-10-05 09:39:48 +02:00
Carlton Gibson 6a852b937c [4.0.x] Added release date for 3.2.7.
Backport of c5776bfca9 from main
2021-10-05 09:08:29 +02:00
Jacob Walls 515d3c591c [4.0.x] Fixed #22224 -- Added note about supplying missing values for non-nullable fields with blank=True.
Backport of cd6bddd44e from main
2021-10-05 06:37:59 +02:00
Hannes Ljungberg 816e809302 [4.0.x] Fixed #32888 -- Doc'd that select_for_update() only locks tables with selected columns.
Backport of d400b08a8b from main
2021-10-04 10:21:08 +02:00
Sarah Abderemane 7fa946c76b [4.0.x] Refs #27694 -- Doc'd lookups that can be chained with HStoreField key transforms.
Backport of 1953dd02b6 from main
2021-10-04 07:44:15 +02:00
Nick Pope fbcd7df120 [4.0.x] Fixed SpGistIndex tests on PostgreSQL 14+.
Backport of dd26362f63 from main
2021-10-01 09:43:32 +02:00
Daniel Hahler 81bb0ae221 [4.0.x] Fixed #33160 -- Avoided suppressing query errors in _nodb_cursor() on PostgreSQL.
Backport of 98c8bf1cee from main
2021-10-01 07:24:45 +02:00
Aljaž Košir 0a49276065 [4.0.x] Fixed #33155 -- Made ModelChoiceIteratorValue instances hashable.
Backport of 7b8beeee3d from main
2021-09-30 12:09:24 +02:00
Mariusz Felisiak 93a42d43a6 [4.0.x] Fixed #33159 -- Reverted "Fixed #32970 -- Changed WhereNode.clone() to create a shallow copy of children."
This reverts commit e441847eca.

A shallow copy is not enough because querysets can be reused and
evaluated in nested nodes, which shouldn't mutate JOIN aliases.

Thanks Michal Čihař for the report.
Backport of 903aaa35e5 from main
2021-09-30 11:26:53 +02:00
David Wobrock b2a0978610 [4.0.x] Fixed #33018 -- Fixed annotations with empty queryset.
Thanks Simon Charette for the review and implementation idea.

Backport of dd1fa3a31b from main
2021-09-29 20:53:16 +02:00
David Wobrock aab76433ed [4.0.x] Fixed #33141 -- Renamed Expression.empty_aggregate_value to empty_result_set_value.
Backport of ad36a198a1 from main
2021-09-29 20:52:59 +02:00
Victor Sowa cebac15931 [4.0.x] Recommended using .tables on SQLite in tutorial 2.
Backport of 9466fd7842 from main
2021-09-29 12:43:27 +02:00
Chenyang Yan ee79fe0f8e [4.0.x] Fixed #33027 -- Made autoreloader pass -X options.
Backport of 36d54b7a14 from main
2021-09-29 12:04:45 +02:00
David Smith 0b62518ff4 [4.0.x] Fixed #33134 -- Fixed recursion depth error when rendering Form with BoundFields.
Regression in 456466d932.

Backport of 4884a87e02 from main
2021-09-29 10:55:01 +02:00
Chinmoy Chakraborty 6f31041794 [4.0.x] Fixed #33033 -- Prevented models.DecimalField from accepting NaN values.
Backport of b7fd668b37 from main
2021-09-28 13:57:45 +02:00
Mariusz Felisiak a9479202d7 [4.0.x] Corrected field and model check messages in docs.
Follow up to 72d04e0385.
Backport of 93f3b7a0ba from main
2021-09-28 10:57:54 +02:00
Claude Paroz 80de140b06 [4.0.x] Removed obsolete GEOS 3.5 requirement note.
Follow up to ea87a85fad.
Backport of 8036b53de6 from main
2021-09-24 18:52:37 +02:00
Jaap Roes 25cfa5db0f [4.0.x] Fixed #33130 -- Restored form errors to be a dict.
Regression in 456466d932.

Backport of 7fe9b6f6df from main
2021-09-24 12:14:11 +02:00
Jaap Roes 5d36af6f6f [4.0.x] Fixed #33132 -- Fixed test client handling of querystring only redirects.
Regression in 1e5aa8e1c7.

Backport of b1bf8c8a4b from main
2021-09-24 08:23:41 +02:00
Mariusz Felisiak 715aa2db67 [4.0.x] Fixed #33133 -- Fixed handling NullBooleanField in historical migrations.
Regression in d992f4e3c2.
Backport of 3b9fe906bf from main
2021-09-23 10:37:14 +02:00
Jero Bado 1350187f8e [4.0.x] Fixed typo in 4.0 release notes.
Backport of 3f2170f720 from main
2021-09-22 15:17:40 +02:00
Joel Farthing bc0cc82101 [4.0.x] Fixed #33128 -- Corrected possessive 's usage in FormSet docs.
Backport of 2f14432375 from main
2021-09-22 11:56:40 +02:00
Mariusz Felisiak 1190a931d5 [4.0.x] Bumped version for 4.0 alpha 1 release. 2021-09-21 20:19:19 +02:00
Carlton Gibson 8467c4ed3e [4.0.x] Fixed #33083 -- Fixed selecting all items in the admin changelist when actions are both top and bottom.
Thanks Benjamin Locher for the report.

Regression in 30e59705fc.
Backport of b0ed619303 from main
2021-09-21 19:59:09 +02:00
Mariusz Felisiak 5b8cc4ce26
[4.0.x] Updated source translation catalogs. 2021-09-21 13:36:52 +02:00
Hasan Ramezani 668b990bf6 [4.0.x] Fixed #33111 -- Fixed passing object to ModelAdmin.get_inlines() when editing in admin change view.
ModelAdmin.get_inlines() should get an unmutated object when creating
formsets during POST request.

Backport of 2f0f30f973 from main
2021-09-21 13:35:47 +02:00
Mariusz Felisiak 881b6bd135 [4.0.x] Refs #32204 -- Replaced three dots with ellipsis in navigation sidebar template.
Backport of 1bb8200f2f from main
2021-09-21 10:19:37 +02:00
Mariusz Felisiak bc1fa8ebcd [4.0.x] Refs #31026 -- Fixed forms_tests if Jinja2 is not installed.
Backport of 881a479911 from main
2021-09-21 10:18:03 +02:00
Mariusz Felisiak 9511a05074 [4.0.x] Fixed broken links and redirects in docs.
Backport of 1d16dbc745 from main
2021-09-21 09:28:38 +02:00
Mariusz Felisiak f426df268b [4.0.x] Used :rfc: role in docs/topics/conditional-view-processing.txt.
Backport of f8bab4e0dc from main
2021-09-21 09:28:30 +02:00
Cleiton Lima a077f10df4 [4.0.x] Fixed #33070 -- Fixed loading translations with language subtags in admin's Select2 widget.
Backport of 8eb5693091 from main
2021-09-21 08:07:59 +02:00
Mariusz Felisiak 3c751f008f [4.0.x] Bumped django_next_version in docs config. 2021-09-20 21:00:55 +02:00
Mariusz Felisiak c1689e65ff Updated man page for Django 4.0 alpha. 2021-09-20 20:55:10 +02:00
Mariusz Felisiak 32f052be0a Made cosmetic edits to docs/releases/4.0.txt. 2021-09-20 20:50:07 +02:00
Mariusz Felisiak 01042c46f0 Removed empty sections from 4.0 release notes. 2021-09-20 20:07:23 +02:00
David Smith 456466d932 Fixed #31026 -- Switched form rendering to template engine.
Thanks Carlton Gibson, Keryn Knight, Mariusz Felisiak, and Nick Pope
for reviews.

Co-authored-by: Johannes Hoppe <info@johanneshoppe.com>
2021-09-20 15:50:18 +02:00
Keryn Knight 5353e7c250 Refs #27624 -- Optimized Query.clone() for non-combined queries.
This avoids constructing a generator expression and a new tuple if the
Query has no combined queries.
2021-09-20 12:34:18 +02:00
AliGhotbizadeh b8f3a3ad54 Refs #33119 -- Added tests for changing model name case referenced by ManyToManyField.
Fixed in aa4acc164d.
2021-09-20 12:00:10 +02:00
Keryn Knight e441847eca Fixed #32970 -- Changed WhereNode.clone() to create a shallow copy of children. 2021-09-20 07:03:10 +02:00
Mariusz Felisiak ef4ef3b8f5
Fixed #32504 -- Updated admin's jQuery to 3.6.0. 2021-09-20 06:54:35 +02:00
Ken Whitesell 0a9aa02e6f Fixed #33077 -- Fixed links to related models for admin's readonly fields in custom admin site. 2021-09-18 12:27:28 +02:00
Steven Maude 475cffd1d6
Fixed typo in docs/intro/reusable-apps.txt. 2021-09-17 20:19:26 +02:00