summaryrefslogtreecommitdiff
path: root/django/contrib/admin
AgeCommit message (Collapse)Author
2021-04-06[3.2.x] Updated translations from Transifex.Claude Paroz
2021-03-18[3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for ↵Johannes Maron
complex cases. In MTI or ForeignKey as primary key cases, it is required to fetch the attname from the field instance on the remote model in order to reliably resolve the to_field_name. Backport of ceb4b9ee68dffc6ab0398886f1758f15f037c472 from main Backport of 03d0f12c823239812da21e5180aaa74dc6fd146e from main Co-authored-by: Johannes Maron <info@johanneshoppe.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-03-10[3.2.x] Fixed #32512 -- Fixed admin dark theme for autocomplete fields.mimi89999
Backport of 0df5c8187a9fa9828824ec2b1fdf37d1082d7ebe from main
2021-03-09[3.2.x] Refs #32018 -- Corrected color variable for toggle links in admin.Mariusz Felisiak
Follow up to cd3019bc106eed27b2f97776e4dd9ec7cbac29b2. Backport of 6f5dbe9dbe45b23b3befe4f1cd2ea13b6049ab96 from main
2021-03-09[3.2.x] Refs #32018 -- Used --darkened-bg for <pre> elements.Mariusz Felisiak
Backport of 781acf0987d80b638057ed1203409e3a19944e3b from main
2021-01-28[3.2.x] Fixed #32391 -- Used CSS flex properties for changelist filter.Denis Skulimovskiy
Matched layout adjustment using flex from admin sidebar added in d24ba1be7a53a113d19e2860c03aff9922efec24. Filters would become squashed when viewport was constrained or list display table became too wide. Backport of 269a76714616fd7ad166a14113f3354bab8d9b65 from master
2021-01-20[3.2.x] Refs #31259 -- Made various dark theme adjustments.Tom Carrick
Backport of f054468cac325e8d8fa4d5934b939b93242a3730 from master
2021-01-18[3.2.x] Fixed #18549 -- Fixed heading for inlines with a OneToOneField.Timothy McCurrach
Used verbose_name instead of verbose_name_plural. Backport of 0aff3fd7110d1bd431a35bb28d8688693b98d886 from master.
2021-01-15[3.2.x] Updated source translation catalogs.Claude Paroz
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