Hasan Ramezani
18759b2209
Fixed #31616 -- Added hint about middleware ordering for SessionMiddleware admin check.
2020-05-25 21:14:32 +02:00
Jon Dufresne
dfb9ae1d23
Refs #30400 -- Improved typography in admin_doc/missing_docutils.html.
2020-05-23 12:02:10 +02:00
Hasan Ramezani
c60524c658
Fixed #31546 -- Allowed specifying list of tags in Command.requires_system_checks.
2020-05-21 12:34:54 +02:00
Fran Hrzenjak
4484bc1b2f
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>
2020-05-20 21:08:47 +02:00
Jon Dufresne
7070d46114
Updated docutils link to HTTPS and new location.
2020-05-18 08:45:31 +02:00
Jon Dufresne
e46f700e39
Refs #31034 -- Used === in nav_sidebar.js admin JS to avoid possible coercion issues.
2020-05-18 07:42:44 +02:00
kjpc-tech
099bce1bf0
Fixed #31590 -- Fixed ModelAdmin.date_hierarchy crash with an empty QuerySet.
...
Regression in 55cdf6c52d
.
2020-05-15 06:35:10 +02:00
Jon Dufresne
81ffedaacc
Fixed #31524 -- Removed minified static assets from the admin.
2020-05-14 16:07:56 +02:00
Jon Dufresne
d522b51c40
Fixed #31575 -- Added system check for admin sidebar request context processor dependency.
...
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-05-14 11:00:51 +02:00
Mariusz Felisiak
e536fa5ce1
Fixed #31579 -- Dropped support for PostgreSQL 9.5 and PostGIS 2.2.
2020-05-14 06:33:00 +02:00
Jon Dufresne
0a627dbe73
Removed unused Downcoder.chars.
...
Unused -- other than as a local variable -- since its introduction in
953badbea5
2020-05-13 21:07:14 +02:00
Claude Paroz
d4c5ef3ebb
Renamed PROJ.4 to PROJ.
2020-05-13 10:30:30 +02:00
Mariusz Felisiak
f2187a227f
Increased the default PBKDF2 iterations for Django 3.2.
2020-05-13 09:07:51 +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
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 0ec4dc91e0
.
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
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
Mariusz Felisiak
aff7a58aef
Updated admin's Select2 to 4.0.13.
2020-05-05 11:30:02 +02:00
Mariusz Felisiak
30083e0780
Fixed #31485 -- Updated admin's jQuery to 3.5.1.
2020-05-05 11:00:05 +02:00
Jon Dufresne
f2051eb8a7
Removed invalid value from admin CSS.
...
The keyword value 'none' is not a valid value for padding-bottom.
2020-05-05 07:01:06 +02:00
Adam Johnson
d17b380653
Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and comments.
2020-05-04 12:10:47 +02:00
François Freitag
e0998a460a
Optimized collectstatic when verbosity is 0.
...
Avoid the dict lookup and length computation when command is not run in
verbose mode.
2020-05-02 20:36:14 +02:00
Mariusz Felisiak
909b5cd1aa
Refs #31032 -- Removed obsolete CSS workaround for IE in openlayers template.
2020-05-02 14:31:20 +02:00
Ian Foote
b4068bc656
Fixed #31455 -- Added support for deferrable exclusion constraints on PostgreSQL.
2020-05-01 09:08:36 +02:00
Jon Dufresne
e972752504
Removed unused CSS in admin.
...
.system-message, .system-message-title are unused since their
introduction in ce0d0cd9e2
.
.float-right, .float-left, .align-left, .align-right, and .example are
unused since 6eb4f25692
.
2020-05-01 07:00:00 +02:00
Jon Dufresne
448cdde935
Removed CSS workarounds for IE7 in admin.
2020-05-01 06:33:24 +02:00
Jon Dufresne
29e35b9a3e
Refs #31032 -- Removed unnecessary vendor prefixes from admin CSS.
...
The CSS properties have been standardized and are available in all
supported browsers.
2020-05-01 06:26:36 +02:00
Mariusz Felisiak
54646a423b
Refs #27468 -- Made user sessions use SHA-256 algorithm.
2020-04-29 16:45:00 +02:00
Jon Dufresne
5869afe32b
Removed unnecessary entities from the admin.
...
Normal spaces are fine when used as a single spaced separation. For
larger spacing, CSS is used.
2020-04-29 11:40:24 +02:00
Jon Dufresne
7271c8def4
Refs #31493 -- Changed IIFE to ES6 blocks.
2020-04-29 10:22:41 +02:00
Jon Dufresne
5d37cc703b
Fixed #31493 -- Replaced var with const and let keywords in JavaScript.
...
The eslint configuration and the admin script compress.py have been
updated for ES6.
The unused fallback of globals.django in jquery.init.js was removed. It
is always included before jsi18n-mocks.test.js and it always sets the
global value.
2020-04-29 10:22:41 +02:00
Jon Dufresne
0dafadadb9
Refs #30400 -- Improved typography of user facing strings in admin changelist.
2020-04-29 07:01:46 +02:00
François Freitag
9ef4a18dbe
Changed django.forms.ValidationError imports to django.core.exceptions.ValidationError.
...
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-28 10:49:00 +02:00
Richard Campen
67b334fbaf
Fixed #31517 -- Fixed HashedFilesMixin.hashed_name() if hash of the file is None.
2020-04-28 08:25:07 +02:00
François Freitag
71d9876e39
Refs #18325 -- Removed unnecessary line endings in management commands.
...
The OutputWrapper automatically adds \n when it’s not present.
2020-04-27 10:10:36 +02:00
François Freitag
abea86f9e4
Removed unnecessary tuple wrapping of single format string argument.
2020-04-27 08:30:16 +02:00
Jon Dufresne
f48a1990fb
Made compress.py script use the official google-closure-compiler release.
...
The script previously used the PyPI package closure, which is slightly
out of date and not maintained by Google.
The JavaScript contribution docs and the compress.py script now runs the
google-closure-compiler package in the recommended way. Google's
documentation on usage and installation can be found at:
https://github.com/google/closure-compiler-npm/tree/master/packages/google-closure-compiler#usage
This also makes the usage simpler as the package now runs through npm's
npx utility, which will automatically install google-closure-compiler to
a per-user cache.
2020-04-22 16:19:27 +02:00
Jon Dufresne
f27482f147
Fixed #31483 -- Rewrote change_form.js without jQuery.
...
The use of $(document).ready() was removed. The script is loaded at the
end of the document. Therefore, the referenced DOM elements are already
available and the script does not need to wait for the full DOM to be
ready before continuing.
Now that the script has no external dependencies, it can be loaded
asynchronously. As such, the async attribute was added to the script
element.
2020-04-22 15:44:55 +02:00
Jon Dufresne
a8bb53dbd2
Refs #31483 -- Removed CSS and JavaScript for unused HTML class add-another.
...
The HTML class was removed in 07988744b3
.
As such, the CSS and JavaScript is unused.
2020-04-22 15:44:55 +02:00