Nicolas Baccelli
83749dca7a
[3.1.x] Fixed #31664 -- Reallowed using non-expressions having filterable attribute as rhs in queryset filters.
...
Regression in 4edad1ddf6203326e0be4bdb105beecb0fe454c4.
Backport of b38d44229ff185ad156bcb443d6db0db7ae3eb98 from master
2020-06-08 09:18:32 +02:00
Mariusz Felisiak
df9b9de6b0
[3.1.x] Fixed #31660 -- Fixed queryset crash when grouping by m2o relation.
...
Regression in 3a941230c85b2702a5e1cd97e17251ce21057efa.
Thanks Tomasz Szymański for the report.
Backport of 78ad4b4b0201003792bfdbf1a7781cbc9ee03539 from master
2020-06-08 07:23:09 +02:00
Sasha Pachev
21adaffb6e
[3.1.x] Fixed #31663 -- Made DecimalField.to_python() handle non-numeric invalid values.
...
Backport of 38a21f2d9ed4f556af934498ec6a242f6a20418a from master
2020-06-05 21:14:33 +02:00
Mariusz Felisiak
031a082d41
[3.1.x] Fixed #31654 -- Fixed cache key validation messages.
...
Backport of 926148ef019abcac3a9988c78734d9336d69f24e from master
2020-06-05 07:22:24 +02:00
Claude Paroz
acaa201527
[3.1.x] Fixed #30134 -- Ensured unlocalized numbers are string representation in templates.
...
Backport of 9e57b1efb5205bd94462e9de35254ec5ea6eb04e from master
2020-06-04 11:00:40 +02:00
Collin Anderson
5b3886d091
[3.1.x] Fixed #31641 -- Improved loading of navigation sidebar in admin.
...
Backport of 4ae9a2b18e2b558df2c084064c42faecac2d75c1 from master
2020-06-03 15:17:45 +02:00
Dan Palmer
580bd64c04
[3.1.x] Fixed CVE-2020-13254 -- Enforced cache key validation in memcached backends.
2020-06-03 09:31:28 +02:00
Jon Dufresne
49d7cc19e3
[3.1.x] Fixed CVE-2020-13596 -- Fixed potential XSS in admin ForeignKeyRawIdWidget.
2020-06-03 09:30:41 +02:00
Mariusz Felisiak
619e3db7d5
[3.1.x] Refs #30997 -- Improved HttpRequest.is_ajax() warning message with stacklevel=2.
...
Backport of 7fc317ae736e8fda1aaf4d4ede84d95fffaf5281 from master
2020-06-03 08:48:21 +02:00
Thodoris Sotiropoulos
fdd2b01e8e
[3.1.x] Fixed #31651 -- Made ExpressionWrapper use grouping columns from wrapped expression.
...
Backport of df32fd42b84cc6dbba173201f244491b0d154a63 from master
2020-06-03 07:53:27 +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
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
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
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
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
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
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
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.
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
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
Sergey Fedoseev
91e287cce0
Refs #30678 -- Added support for GDAL 3.1.
...
OSRSetAxisMappingStrategy() really returns void, so no errcheck is
needed. Previously set errcheck was raising positive false exceptions
on GDAL 3.1.
2020-05-12 11:25:19 +02:00
Claude Paroz
58f1b07e49
Fixed #30678 -- Added support for GDAL 3.
2020-05-12 09:06:06 +02:00
Mariusz Felisiak
0668164b4a
Fixed E128, E741 flake8 warnings.
2020-05-12 08:52:23 +02:00
Claude Paroz
e6ec76d245
Updated JS admin translation catalog.
2020-05-11 22:59:27 +02:00
Claude Paroz
33f26339b7
Updated source translation catalogs.
2020-05-11 21:34:46 +02:00
Tom Carrick
46fe506445
Corrected indentation of #main div in admin base template.
2020-05-11 18:16:38 +02:00
Tom Carrick
d24ba1be7a
Fixed #31034 -- Added a navigation sidebar to the admin.
...
Co-authored-by: elky <elky@users.noreply.github.com>
Co-authored-by: Goetz <goetz.buerkle@gmail.com>
2020-05-11 18:16:38 +02:00
Jon Dufresne
d6aff369ad
Refs #30116 -- Simplified regex match group access with Match.__getitem__().
...
The method has been available since Python 3.6. The shorter syntax is
also marginally faster.
2020-05-11 12:01:28 +02:00
Sergey Fedoseev
23f6fbdd93
Simplified GDAL version parsing.
2020-05-11 11:57:22 +02:00
Adam Johnson
a8b2db1cae
Optimized Model and QuerySet pickling version comparison.
2020-05-11 09:50:11 +02:00
Jon Dufresne
72a170b4c3
Fixed #25236 -- Deprecated {% ifequal %} and {% ifnotequal %} template tags.
...
The {% if %} tag provides all features of these tags.
Since Django 1.2 (May 17, 2010), the docs have hinted that
{% ifequal %} and {% ifnotequal %} will be deprecated in a future
Django version. Time to make it official.
2020-05-11 09:07:33 +02:00
Yash Saini
ccb1cfb64e
Fixed #31548 -- Fixed URLValidator crash on non-strings.
2020-05-08 20:53:05 +02:00
Hasan Ramezani
87faeee4e0
Fixed #31528 -- Made collectstatic management command run staticfiles checks.
2020-05-08 12:47:57 +02:00
Mariusz Felisiak
b23e3a1caa
Refs #27661 -- Added Tags.staticfiles.
...
Follow up to 0ec4dc91e0e7befdd06aa0613b5d0fbe3c785ee7.
2020-05-08 11:38:18 +02:00
dbxnr
fc0f7f6c15
Fixed #31157 -- Fixed displaying read-only JSONField values in admin.
2020-05-08 09:44:42 +02:00
sage
6789ded0a6
Fixed #12990 , Refs #27694 -- Added JSONField model field.
...
Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael
Michel for mentoring this Google Summer of Code 2019 project and
everyone else who helped with the patch.
Special thanks to Mads Jensen, Nick Pope, and Simon Charette for
extensive reviews.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-05-08 07:23:31 +02:00
Mariusz Felisiak
f97f71f592
Refs #12990 -- Bumped mysqlclient requirement to >= 1.4.0.
...
MySQLdb.constants.FIELD_TYPE.JSON was added in mysqlclient 1.4.0rc2.
2020-05-08 06:14:42 +02:00
Jon Dufresne
6137ec2bf2
Changed selected attribute to HTML5 boolean syntax in SelectBox.js.
...
Per MDN, HTMLOptionElement.selected is a Boolean attribute.
2020-05-08 06:02:42 +02:00
Jon Dufresne
3c5a586ce9
Fixed #31542 -- Simplified admin JavaScript with "for … of" statements.
2020-05-07 18:09:32 +02:00