summaryrefslogtreecommitdiff
path: root/django/contrib/admin
AgeCommit message (Collapse)Author
2020-06-26Fixed the centering of the "Log in" button on admin login page.Jon Dufresne
Previously, the button's container had a padding of 9.4em which was approximately center but not precisely. Now, the container uses 'align:text-center' to let the browser center the button.
2020-06-25Simplified label element CSS in admin login.css.Jon Dufresne
Don't add horizontal padding as the label is always displayed on its own line. This padding added no visual difference. Move the 'display: block' property from responsive.css to base.css. The label is already displayed on its own line in all viewports, so reduce differences in rendering. Using block also allows the label to consume the width of its container, creating a larger clickable area for a slight a11y improvement.
2020-06-25Removed unnecessary admin CSS.Jon Dufresne
The "object-tools" container is never rendered as a descendant of .form-row. The "golink" CSS class is unused. A <label> element has not been included in the login .submit-row since 5869afe32b9c252cacd327f18c58e38c36d1f530. The "help" CSS class from login.css has been unused since 0e5faf225c5cd1acf2ab653c74f5b161470403b9. The <label> color in login.css is already inherited from the <body> element and so does not need to be re-specified. The #content-main container already has the property 'width: 100%' from base.css and so does not need to be re-specified in login.css. The <td> and <th> font-family property is inherited from the <body> element and so does not need to be re-specified. The <html> element has the attribute dir which automatically sets the text direction in the layout. Adding the direction CSS property was necessary to support IE which does not support the dir attribute, but IE is no longer supported, so drop the direction property. The 'font-size: 1em' property re-specifies the same font size. It creates no visual difference. The 'font-size: 14px' property often re-specifies the inherited value. Avoid re-specifying it.
2020-06-25Refs #26761 -- Removed extra space in admin change list result header.Hasan Ramezani
2020-06-24Fixed #31523 -- Removed jQuery dependency from actions.js.Jon Dufresne
2020-06-18Fixed #6933 -- Added support for searching against quoted phrases in ↵Alix
ModelAdmin.search_fields.
2020-06-04Removed unused HTML class flex from admin changelist.Adam Johnson
Unused since 233708fb683ae2c1cf3e4c00edc2e4842d99a42d.
2020-06-03Fixed #31641 -- Improved loading of navigation sidebar in admin.Collin Anderson
2020-06-03Fixed CVE-2020-13596 -- Fixed potential XSS in admin ForeignKeyRawIdWidget.Jon Dufresne
2020-06-01Fixed #31536 -- Fixed rendering of disabled AdminFileWidget and ↵Carles Pina
ClearableFileInput.
2020-05-28Removed unused admin:jsi18n <script> element from change_password.html.Jon Dufresne
The view does not contain any other JavaScript and therefore does not have any user facing JavaScript strings to translate. Avoid the HTTP request.
2020-05-28Refs #31034 -- Improved accessibility of admin navigation sidebar.Tom Carrick
2020-05-27Fixed #11157 -- Stopped removing stop words in admin's prepopulated_fields.Scott Cranfill
Co-Authored-By: Andy Chosak <andy@chosak.org>
2020-05-25Fixed #31616 -- Added hint about middleware ordering for SessionMiddleware ↵Hasan Ramezani
admin check.
2020-05-20Fixed #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>
2020-05-18Refs #31034 -- Used === in nav_sidebar.js admin JS to avoid possible ↵Jon Dufresne
coercion issues.
2020-05-15Fixed #31590 -- Fixed ModelAdmin.date_hierarchy crash with an empty QuerySet.kjpc-tech
Regression in 55cdf6c52db07f29128741b8734a523ed042e465.
2020-05-14Fixed #31524 -- Removed minified static assets from the admin.Jon Dufresne
2020-05-14Fixed #31575 -- Added system check for admin sidebar request context ↵Jon Dufresne
processor dependency. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-05-13Removed unused Downcoder.chars.Jon Dufresne
Unused -- other than as a local variable -- since its introduction in 953badbea5a04159adbfa970f5805c0232b6a401
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>