Commit Graph

29173 Commits

Author SHA1 Message Date
Anil Khatri bae685f267 [3.2.x] Fixed #32430 -- Doc'd base class-based views.
Backport of 6ee86a12ee from master
2021-02-08 17:33:53 +01:00
Anil Khatri 20e0e47f25 [3.2.x] Fixed #32408 -- Doc'd django.views.generic.detail.BaseDetailView.
Backport of de4492fbb1 from master
2021-02-08 07:08:53 +01:00
Amankumar Singh d192d751e1 [3.2.x] Fixed #32419 -- Clarified URLconf in example of serving media files.
Backport of 51637222b6 from master
2021-02-05 15:34:28 +01:00
Mikolaj Rybinski d881a0ea3b [3.2.x] Fixed #32420 -- Fixed detecting primary key values in deserialization when PK is also a FK.
Backport of 8e90560aa8 from master
2021-02-05 14:19:10 +01:00
Carlton Gibson f490cde15d [3.2.x] Corrected typo in advice to new contributors.
Backport of e48e78738e from master
2021-02-04 16:02:08 +01:00
Mariusz Felisiak ff25791d23 [3.2.x] Refs #32074 -- Fixed TextChoices/IntegerChoices crash on Python 3.10.
EnumMeta has a new keyword argument 'boundary' in Python 3.10. This
is a new mechanism that controls how out-of-range / invalid bits are
handled, see https://bugs.python.org/issue38250.

Backport of 5d9b065d3f from master
2021-02-04 10:51:41 +01:00
GabbyPrecious cb680b6819 [3.2.x] Refs #32412 -- Adjusted link from tutorial to reference docs.
The writing code index page is a better location for a newer contributor to
land, than the specific patch guidelines subpage.

Backport of aa29c57bee from master
2021-02-04 10:37:36 +01:00
GabbyPrecious bbd1b3565b [3.2.x] Refs #32412 -- Adjusted beginning of Advice for new contributors.
With the goal of guiding folks to the right destination:

* Improved wording of tutorial call-out.
* Added summary of page purpose.
* Added link to Writing code reference doc.

Backport of e733c9ac17 from master
2021-02-04 10:37:15 +01:00
Dan Swain afe34e7237 [3.2.x] Fixed typos in 3.2 release notes.
Backport of e17bdb953a from master
2021-02-04 09:56:58 +01:00
Hasan Ramezani b36beec208 [3.2.x] Fixed #32332 -- Fixed loss of parent with non-numeric pk when saving child after parent.
Follow up to 519016e5f2.

Backport of 7cba92ec55 from master
2021-02-04 07:08:20 +01:00
Mariusz Felisiak 7d65889345 [3.2.x] Fixed #32403 -- Fixed re-raising DatabaseErrors when using only 'postgres' database.
Thanks Kazantcev Andrey for the report.

Regression in f48f671223.
Backport of f131841c60 from master
2021-02-02 21:35:35 +01:00
Brad Solomon eab0b8b804 [3.2.x] Fixed typo in docs/ref/forms/widgets.txt.
Backport of f9cfd346f0 from master
2021-02-01 12:05:22 +01:00
Mariusz Felisiak b62e767b88 [3.2.x] Added stub release notes for 3.1.7.
Backport of 8d3c3a5717 from master
2021-02-01 10:55:07 +01:00
Mariusz Felisiak 10b25e6722 [3.2.x] Added CVE-2021-3281 to security archive.
Backport of f749148d62 from master
2021-02-01 10:45:47 +01:00
Mariusz Felisiak f944f79e55 [3.2.x] Fixed CVE-2021-3281 -- Fixed potential directory-traversal via archive.extract().
Thanks Florian Apolloner, Shai Berger, and Simon Charette for reviews.

Thanks Wang Baohua for the report.

Backport of 05413afa8c from master.
2021-02-01 09:13:37 +01:00
Sandro Covo 0a3d93ffba [3.2.x] Fixed #32345 -- Fixed preserving encoded query strings in set_language() view.
Thanks Johannes Maron for the review.

Backport of 6822aa5c6c from master
2021-01-29 12:37:48 +01:00
Tilman Koschnick 18cac6bbfb [3.2.x] Fixed #32392 -- Fixed ExclusionConstraint crash with Cast() in expressions.
Backport of fdfbc66331 from master
2021-01-29 11:26:51 +01:00
Mariusz Felisiak f4d51e12ae [3.2.x] Fixed GeoIPTest.test04_city() failure with the latest GeoIP2 database.
Backport of 135c800fe6 from master
2021-01-29 11:02:28 +01:00
Adam Johnson 52a4882c40 [3.2.x] Modernized custom manager example
Since this example was added 15 years ago in a8ccdd0fcd, the ORM has gained the ability to do the `COUNT(*)` related query, so do it with the ORM to avoid misleading users that raw SQL is only supported from manager methods.

Backport of 59e503b670 from master
2021-01-28 16:01:46 +01:00
Denis Skulimovskiy d83249b0b9 [3.2.x] Fixed #32391 -- Used CSS flex properties for changelist filter.
Matched layout adjustment using flex from admin sidebar added in
d24ba1be7a.

Filters would become squashed when viewport was
constrained or list display table became too wide.

Backport of 269a767146 from master
2021-01-28 15:52:59 +01:00
Illia Volochii f9b2b1bb3b [3.2.x] Fixed #32389 -- Fixed ResponseHeaders crash when data is not mapping.
Backport of 3c004075b1 from master
2021-01-28 10:17:33 +01:00
Timothy McCurrach e95a60bb64 [3.2.x] Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about duplicates for multiple batches.
Backport of 241da3f06e from master
2021-01-28 08:07:14 +01:00
Adam Johnson ba71cf38ea [3.2.x] Changed "Don't overuse count() or exists()" example to Python.
Backport of 8a642b88c3 from master
2021-01-27 20:47:46 +01:00
Hasan Ramezani 73e7bfc8f5 [3.2.x] Fixed #32290 -- Fixed TemplateNotFound in {% include %} tag for relative path in variable.
Backport of c978dd93fd from master
2021-01-27 11:35:40 +01:00
Carlton Gibson 4dbbe37479 [3.2.x] Fixed #32348, Refs #29087 -- Corrected tutorial for updated deleting inlines UI.
Updated tutorial to match change in 24e540fbd7
allowing deletion of original extra inlines.

Backport of f4272d000a from master
2021-01-27 08:47:27 +01:00
Simon Charette 9607e3a0cc [3.2.x] Fixed #32369 -- Fixed adding check constraints with pattern lookups and expressions as rhs.
This disables interpolation of constraint creation statements. Since
Constraint.create_sql interpolates its parameters instead of deferring
this responsibility to the backend connection it must disable
connection level parameters interpolation.

Backport of 42e8cf47c7 from master
2021-01-26 08:20:40 +01:00
Hannes Ljungberg 5d9374b9fb [3.2.x] Refs #26167 -- Corrected OpClass() example in docs.
Backport of 90ddf46ef7 from master
2021-01-25 09:03:31 +01:00
Jack c708837a69 [3.2.x] Refs #32372 -- Updated manager name in related objects reference docs.
Follow up to 725c549ae7.
Backport of 2b4b6c8af0 from master
2021-01-22 20:19:27 +01:00
Jack Aitken 59c63c7f6b [3.2.x] Fixed #32372 -- Made examples in related objects reference docs consistent.
Backport of 725c549ae7 from master
2021-01-22 06:53:13 +01:00
Mariusz Felisiak e45b944d69 [3.2.x] Fixed #32367 -- Fixed system check for specifying type of auto-created primary keys for inherited PKs.
Regression in b5e12d490a.

Thanks אורי for the report.

Backport of a03a36121d from master
2021-01-21 19:38:11 +01:00
Simon Charette 6520ce5251 [3.2.x] Fixed #32374 -- Stopped recording migration application before deferred SQL.
Migrations cannot be recorded in the same transaction as its associated
DDL operations when some of it is deferred until the schema editor
context exits.

Regression in c86a3d80a2.

Backport of 0c42cdf0d2 from master
2021-01-21 07:35:43 +01:00
Simon Charette 900b2ce92b [3.2.x] Refs #29721 -- Simplified migration used to test atomic recording.
This makes sure atomic recording of migration application is used when
the schema editor doesn't defer any statement.

Backport of 533a583578 from master
2021-01-21 07:35:33 +01:00
Matthias Kestenholz 41405a0b8e [3.2.x] Fixed #32371 -- Doc'd jquery.init.js dependency for admin widgets.
Backport of 7b3ec6bcc8 from master
2021-01-20 22:07:40 +01:00
Tom Carrick 4cf4c2df56 [3.2.x] Refs #31259 -- Made various dark theme adjustments.
Backport of f054468cac from master
2021-01-20 15:49:25 +01:00
Carlton Gibson 0db73315fd [3.2.x] Bumped version for 3.2 alpha 1 release. 2021-01-19 12:02:47 +01:00
Paul Ganssle a5d70cca12 [3.2.x] Refs #32365 -- Allowed use of non-pytz timezone implementations.
Backport of 10d1261984 from master
2021-01-19 12:00:40 +01:00
Mariusz Felisiak de4e854f07 [3.2.x] Corrected versionadded annotations.
Backport of 73ffc73b68 from master
2021-01-19 11:58:37 +01:00
Illia Volochii 8dcb8b9e95 [3.2.x] Fixed #32358 -- Fixed queryset crash when grouping by annotation with Distance()/Area().
Made MeasureBase hashable.

Backport of bef6f75842 from master
2021-01-18 12:07:30 +01:00
Timothy McCurrach a91bf80459 [3.2.x] Fixed #18549 -- Fixed heading for inlines with a OneToOneField.
Used verbose_name instead of verbose_name_plural.

Backport of 0aff3fd711 from master.
2021-01-18 09:56:15 +01:00
Claude Paroz 3dc3a952b2
[3.2.x] Updated source translation catalogs. 2021-01-15 09:43:17 +01:00
Carlton Gibson 75182a800a Removed empty sections and adjusted 3.2 release notes. 2021-01-14 14:58:28 +01:00
Carlton Gibson db971f63ab Updated django-admin man page for Django 3.2. 2021-01-14 14:58:28 +01:00
Matthias Kestenholz 257dfce6c8
Refs #31259 -- Improved some color contrasts for admin dark theme. 2021-01-14 14:06:02 +01:00
Hasan Ramezani f750377318 Fixed #32321 -- Added system checks for invalid model field names in functional indexes. 2021-01-14 12:27:00 +01:00
Jon Moroney 76ae6ccf85 Fixed #31358 -- Increased salt entropy of password hashers.
Co-authored-by: Florian Apolloner <florian@apolloner.eu>
2021-01-14 11:20:28 +01:00
Jon Moroney 6bd206e1ff Refs #31358 -- Added bcrypt password hashers tests for must_update() with salt(). 2021-01-14 11:20:28 +01:00
Carles Pina Estany 7072bff1fd
Fixed cross-link in CBV topic documentation. 2021-01-14 11:17:59 +01:00
Hannes Ljungberg ffe756d624 Refs #26167 -- Changed default value of DatabaseFeatures.supports_expression_indexes to True. 2021-01-14 08:32:26 +01:00
mimi89999 b5cef91a91 Fixed #31259 -- Added admin dark theme. 2021-01-14 08:27:29 +01:00
Florian Apolloner 64cc9dcdad Refs #31358 -- Added constant for get_random_string()'s default alphabet. 2021-01-13 20:40:40 +01:00