summaryrefslogtreecommitdiff
path: root/django/contrib/admin
AgeCommit message (Collapse)Author
2021-01-18Fixed #18549 -- Fixed heading for inlines with a OneToOneField.Timothy McCurrach
Used verbose_name instead of verbose_name_plural.
2021-01-15Updated source translation catalogs.Claude Paroz
Forwardport of 3dc3a952b28af444cb3bc83d4638a0e5fc2eeae1 from stable/3.2.x.
2021-01-14Refs #31259 -- Improved some color contrasts for admin dark theme.Matthias Kestenholz
2021-01-14Fixed #31259 -- Added admin dark theme.mimi89999
2021-01-13Fixed #16117 -- Added decorators for admin action and display functions.Nick Pope
Refs #25134, #32099.
2021-01-12Fixed #31747 -- Fixed model enumeration via admin URLs.Jon Dufresne
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-01-12Fixed #29010, Fixed #29138 -- Added limit_choices_to and to_field support to ↵Johannes Maron
autocomplete fields. * Fixed #29010 -- Added limit_choices_to support to autocomplete fields. * Fixed #29138 -- Allowed autocomplete fields to target a custom to_field rather than the PK.
2021-01-12Refs #32018 -- Corrected color variables for paginator and header links in ↵Michel Le Bihan
admin. Follow up to cd3019bc106eed27b2f97776e4dd9ec7cbac29b2.
2021-01-11Refs #32018 -- Used --header-link-color for header links in admin.Michel Le Bihan
2021-01-07Fixed #32018 -- Extracted admin colors into CSS variables.Matthias Kestenholz
Defined all colors used in the admin CSS as variables. Implemented the following standardizations and accessibility improvements while at it: - Improved the contrast of text to not use ratios of less than 3:1 anymore. - Most hover states already used desaturated and darkened colors. Changed object tools to follow the same rule instead of showing the primary color on hover. Various places used similar colors; those have been merged with the goal of reducing the count of CSS variables. Contrasts have been improved in a few places. - Many borders used slightly different colors (e.g. #eaeaea vs. #eee) - Help texts used #999, this has been changed to --body-quiet-color (#666) which has a better contrast. Introduced fast color transitions on links and buttons.
2021-01-06Fixed #32322 -- Fixed autocomplete widget wrapping.Viktor Grabov
2020-12-15Fixed #31007 -- Allowed specifying type of auto-created primary keys.Tom Forbes
This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
2020-11-30Refs #31978 -- Fixed hint in admin's password reset confirmation form for ↵Mariusz Felisiak
custom username fields. Thanks Jaap Roes for the report.
2020-11-20Added explicit HTMLElement.dir attribute in templates.Author: Nick Pope
2020-11-14Refs #24474 -- Changed AdminSite.empty_value_display property to an attribute.Nick Pope
This was implemented with a property getter and setter when introduced in 0207bdd2d4157c542c981264c86706b78ca246e9. There is nothing special occurring here though - a simple read from and assign to the underlying private attribute.
2020-11-13Unified admin action description generation.Nick Pope
Actions added to AdminSite.actions would not have the first character of their description capitalized. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-11-10Avoided direct styles in admin templates.Claude Paroz
Direct styles might be forbidden by Content Security Policies.
2020-10-28Fixed #32062 -- Added %b support to Date.strftime.Gagan Deep
This enables the admin to display the month as locale's abbreviated name if %b is used in the date format.
2020-10-27Fixed #32127 -- Fixed admin change-form textarea layout for mid-sized displays.Josh Santos
2020-10-21Fixed #32069 -- Fixed admin change-form layout on small screens.Carlton Gibson
Restored flex-wrap CSS declaration to form elements at smallest breakpoint. This was present since the responsive admin was introduced in dc37e8846eeedc3a9100ca21fdc9d579bc534c89. Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822, where it was accidentally removed.
2020-10-13Removed unnecessary check in BaseModelAdmin.get_view_on_site_url().Marco Richetta
2020-10-09Fixed #32091 -- Fixed admin search bar width on filtered admin page.Tim Schilling
2020-10-09Fixed #32080 -- Fixed displaying Unicode chars in forms.JSONField and ↵Qi Zhao
read-only JSONField values in admin.
2020-10-08Fixed #31181 -- Added links to related models for admin's readonly fields.Julien Rebetez
2020-10-06Fixed #32072 -- Fixed admin search bar height.Tom Carrick
Thanks şuayip üzülmez for the report. Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822.
2020-09-30Fixed #31986 -- Fixed admin filter sidebar scrolling.Tom Carrick
Regression in 2bc38bc7cae002f949157d95e3f0c19ea6b8ca5c. Thanks haki for the report.
2020-09-30Updated translations from Transifex.Claude Paroz
Forwardport of f7397bb7c8cb938161a9d43a16ee974f41c96a8b from stable/3.1.x.
2020-09-23Fixed #32029 -- Removed unnecessary margin in admin CSS for horizontal radio ↵Matthias Kestenholz
inputs.
2020-09-23Fixed #32027 -- Fixed wrapping of long words in admin error messages.Matthias Kestenholz
2020-09-23Fixed #32034 -- Removed redundant get_app_config() call in AdminSite.app_index.Raffaele Salmaso
app_config.verbose_name is already in app_dict.
2020-09-15Fixed #31636 -- Made BooleanFieldListFilter respect Field.choices.manav014
2020-09-14Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick
2020-09-11Fixed #31993 -- Added subtitles to admin change/view pages.Jon Dufresne
2020-09-10Fixed #31992 -- Made admin password reset templates use title/content_title ↵Jon Dufresne
blocks from the base template.
2020-09-03Fixed #31978 -- Added username hint to admin's password reset confirmation form.Collin Anderson
2020-09-01Fixed #31901 -- Prevented content overflowing in the admin changelist with ↵007gzs
navigation sidebar.
2020-08-11Fixed #31865 -- Adjusted admin nav sidebar template to reduce debug logging.Carlton Gibson
Thanks to Mariusz Felisiak for review.
2020-08-06Fixed #25513 -- Extracted admin pagination to Paginator.get_elided_page_range().Nick Pope
2020-08-06Refs #25513 -- Fixed admin pagination elision bounds.Nick Pope
It doesn't make sense to elide a single page number which could be a clickable link to that page. We only want to elide two or more pages.
2020-08-06Refs #25513 -- Adjusted admin pagination to be 1-indexed.Nick Pope
2020-08-05Fixed #31854 -- Fixed wrapping of long model names in admin's sidebar.Mariusz Felisiak
2020-08-05Fixed #31853 -- Fixed wrapping of translated action labels in admin sidebar.007gzs
2020-08-01Updated translations from TransifexClaude Paroz
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
2020-07-21Fixed #31180 -- Configured applications automatically.Aymeric Augustin
2020-07-14Added admin translatable string.Claude Paroz
Forward port of dda8a2aa1d31a4dc818a6950565811c7f32d352a from stable/3.1.x.
2020-07-04Simplified <body> element references in DateTimeShortcuts.js.Jon Dufresne
2020-07-01Fixed #31522 -- Made admin's SelectBox preserve scroll position.tapan gujjar
2020-07-01Made JavaScript URL manipulation more robust with URL and URLSearchParams.Jon Dufresne
Use the rich interface and native parsing provided by the browser rather than raw string manipulation. https://developer.mozilla.org/en-US/docs/Web/API/URL https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
2020-07-01Simplified JavaScript with Array.prototype.includes().Jon Dufresne
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes