summaryrefslogtreecommitdiff
path: root/django/contrib/admin
AgeCommit message (Collapse)Author
2020-08-01[3.1.x] Updated translations from TransifexClaude Paroz
Backport of 1a60838fa688d3c1e245ebe4cfe7038ccd67ae3b from master
2020-07-14Added admin translatable string.Claude Paroz
2020-06-03[3.1.x] Fixed #31641 -- Improved loading of navigation sidebar in admin.Collin Anderson
Backport of 4ae9a2b18e2b558df2c084064c42faecac2d75c1 from master
2020-06-03[3.1.x] Fixed CVE-2020-13596 -- Fixed potential XSS in admin ↵Jon Dufresne
ForeignKeyRawIdWidget.
2020-06-01[3.1.x] Fixed #31536 -- Fixed rendering of disabled AdminFileWidget and ↵Carles Pina
ClearableFileInput. Backport of e46c2326c8cfc038e015f55fd050ab5d7eb91b62 from master
2020-05-28[3.1.x] Refs #31034 -- Improved accessibility of admin navigation sidebar.Tom Carrick
Backport of 780473d75625d014cbe9b0acdea40b7a5970d5d8 from master
2020-05-20[3.1.x] Fixed #31597, #31603 -- Corrected admin clear all filters link behavior.Fran Hrzenjak
- 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-18[3.1.x] Refs #31034 -- Used === in nav_sidebar.js admin JS to avoid possible ↵Jon Dufresne
coercion issues. Backport of e46f700e39cef3856f34b56dc5d563d3e27648ac from master
2020-05-15[3.1.x] Fixed #31590 -- Fixed ModelAdmin.date_hierarchy crash with an empty ↵kjpc-tech
QuerySet. Regression in 55cdf6c52db07f29128741b8734a523ed042e465. Backport of 099bce1bf0b9802b7159beb9260b9b9e344bf497 from master
2020-05-14[3.1.x] Fixed #31575 -- Added system check for admin sidebar request context ↵Jon Dufresne
processor dependency. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Backport of d522b51c401429c169d88742178a9b3777903d9e from master
2020-05-12Fixed E128, E741 flake8 warnings.Mariusz Felisiak
2020-05-11Updated JS admin translation catalog.Claude Paroz
2020-05-11Updated source translation catalogs.Claude Paroz
2020-05-11Corrected indentation of #main div in admin base template.Tom Carrick
2020-05-11Fixed #31034 -- Added a navigation sidebar to the admin.Tom Carrick
Co-authored-by: elky <elky@users.noreply.github.com> Co-authored-by: Goetz <goetz.buerkle@gmail.com>
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-05-08Fixed #31157 -- Fixed displaying read-only JSONField values in admin.dbxnr
2020-05-08Changed selected attribute to HTML5 boolean syntax in SelectBox.js.Jon Dufresne
Per MDN, HTMLOptionElement.selected is a Boolean attribute.
2020-05-07Fixed #31542 -- Simplified admin JavaScript with "for … of" statements.Jon Dufresne
2020-05-05Updated admin's Select2 to 4.0.13.Mariusz Felisiak
2020-05-05Fixed #31485 -- Updated admin's jQuery to 3.5.1.Mariusz Felisiak
2020-05-05Removed invalid value from admin CSS.Jon Dufresne
The keyword value 'none' is not a valid value for padding-bottom.
2020-05-01Removed unused CSS in admin.Jon Dufresne
.system-message, .system-message-title are unused since their introduction in ce0d0cd9e2cd5ac9850d825f28db39b1e123ac1e. .float-right, .float-left, .align-left, .align-right, and .example are unused since 6eb4f2569266391e223410ab7eaa2555ac0a4f10.
2020-05-01Removed CSS workarounds for IE7 in admin.Jon Dufresne
2020-05-01Refs #31032 -- Removed unnecessary vendor prefixes from admin CSS.Jon Dufresne
The CSS properties have been standardized and are available in all supported browsers.
2020-04-29Removed unnecessary &nbsp; entities from the admin.Jon Dufresne
Normal spaces are fine when used as a single spaced separation. For larger spacing, CSS is used.
2020-04-29Refs #31493 -- Changed IIFE to ES6 blocks.Jon Dufresne
2020-04-29Fixed #31493 -- Replaced var with const and let keywords in JavaScript.Jon Dufresne
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-29Refs #30400 -- Improved typography of user facing strings in admin changelist.Jon Dufresne
2020-04-28Changed django.forms.ValidationError imports to ↵François Freitag
django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-27Removed unnecessary tuple wrapping of single format string argument.François Freitag
2020-04-22Made compress.py script use the official google-closure-compiler release.Jon Dufresne
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-22Fixed #31483 -- Rewrote change_form.js without jQuery.Jon Dufresne
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-22Refs #31483 -- Removed CSS and JavaScript for unused HTML class add-another.Jon Dufresne
The HTML class was removed in 07988744b347302925bc6cc66511e34224db55ab. As such, the CSS and JavaScript is unused.
2020-04-22Updated admin's XRegExp to 3.2.0.Mariusz Felisiak
2020-04-22Simplified collapse.js with Element.closest().Jon Dufresne
2020-04-17Fixed #30311 -- Restored ability to override global admin actions.hashlash
2020-04-16Fixed #31441 -- Ensured TabluarInline expands when child inputs have errors.Hasan Ramezani
2020-04-16Refs #31441 -- Added red border to inputs with errors for TabluarInline.Hasan Ramezani
2020-04-16Fixed #31470 -- Fixed fieldset admin CSS to prevent overflowing <pre> elements.Nick Pope
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-15Fixed #31462 -- Allowed overriding autocomplete/raw_id_fields/filter widgets ↵007
for ManyToManyFields with formfield_overrides.
2020-03-27Fixed #31404 -- Changed selector-chosen's multiple attribute to HTML5 ↵zriv
boolean syntax.
2020-03-25Fixed #29724 -- Fixed timezone handling in ModelAdmin.date_hierarchy queries.Hasan Ramezani
Thanks Alexander Holmbäck for the initial patch.
2020-03-24Fixed #31391 -- Removed jQuery usage in cancel.jsJon Dufresne
Now that cancel.js has no dependencies, it can be loaded asynchronously. Co-Authored-By: François Freitag <mail@franek.fr>
2020-03-24Fixed #31365 -- Removed jQuery usage in SelectFilter2.js.Jon Dufresne
2020-03-23Refs #31032 -- Removed unsupported browsers workarounds and comments in ↵Jon Dufresne
admin's JavaScript. Since 8b30360322d4de6687e17ab267a856db4e3c78a6, the admin documentation is explicit that only modern evergreen browsers are supported. This allows removing several long standing workarounds for IE and Opera older versions. Since 2013, Opera is based on the Chromium blink engine.
2020-03-17Removed unused return values in SelectFilter2.js.Jon Dufresne
2020-03-17Simplified SelectFilter2 with Element.closest().Jon Dufresne
https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
2020-03-16Fixed #31361 -- Fixed invalid action="" in admin forms.Jon Dufresne
The attribute action="" (empty string) on the <form> element is invalid HTML5. The spec (https://html.spec.whatwg.org/#attr-fs-action) says: > The action and formaction content attributes, if specified, must have > a value that is a valid non-empty URL potentially surrounded by > spaces. Emphasis on non-empty. The action attribute is allowed to be omitted, in which case the current URL is used which is the same behavior as now.
2020-03-09Fixed #31349 -- Used :nth-child() CSS pseudo-class to style alternative rows ↵Jon Dufresne
in admin.