| Age | Commit message (Collapse) | Author |
|
distinct() for preventing duplicates.
Thanks Zain Patel for the report and Simon Charette for reviews.
The exception introduced in 6307c3f1a123f5975c73b231e8ac4f115fd72c0d
revealed a possible data loss issue in the admin.
Backport of 187118203197801c6cb72dc8b06b714b23b6dd3d from main
|
|
QuerySet.distinct() is not the only way to avoid duplicate, it's also
not preferred.
Backport of cd74aad90e09865ae6cd8ca0377ef0a5008d14e9 from main
|
|
template.
Regression in 84609b3205905097d7d3038d32e6101f012c0619.
Backport of 4e5bbb6ef2287126badd32842b239f4a8a7394ca from main.
|
|
admin changelist.
Regression in 30e59705fc3e3e9e8370b965af794ad6173bf92b.
Backport of 5c73fbb6a93ee214678f02ba4027f18dff49337b from main
|
|
against phrases with unbalanced quotes.
Thanks Dlis for the report.
Regression in 26a413507abb38f7eee4cf62f2ee9727fdc7bf8d.
Backport of 23fa29f6a6659e0f600d216de6bcb79e7f6818c9 from main
|
|
|
|
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>
|
|
Backport of 0df5c8187a9fa9828824ec2b1fdf37d1082d7ebe from main
|
|
Follow up to cd3019bc106eed27b2f97776e4dd9ec7cbac29b2.
Backport of 6f5dbe9dbe45b23b3befe4f1cd2ea13b6049ab96 from main
|
|
Backport of 781acf0987d80b638057ed1203409e3a19944e3b from main
|
|
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
|
|
Backport of f054468cac325e8d8fa4d5934b939b93242a3730 from master
|
|
Used verbose_name instead of verbose_name_plural.
Backport of 0aff3fd7110d1bd431a35bb28d8688693b98d886 from master.
|
|
|
|
|
|
|
|
Refs #25134, #32099.
|
|
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
|
|
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.
|
|
admin.
Follow up to cd3019bc106eed27b2f97776e4dd9ec7cbac29b2.
|
|
|
|
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.
|
|
|
|
This also changes the default type of auto-created primary keys
for new apps and projects to BigAutoField.
|
|
custom username fields.
Thanks Jaap Roes for the report.
|
|
|
|
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.
|
|
Actions added to AdminSite.actions would not have the first character
of their description capitalized.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
Direct styles might be forbidden by Content Security Policies.
|
|
This enables the admin to display the month as locale's abbreviated
name if %b is used in the date format.
|
|
|
|
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.
|
|
|
|
|
|
read-only JSONField values in admin.
|
|
|
|
Thanks şuayip üzülmez for the report.
Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822.
|
|
Regression in 2bc38bc7cae002f949157d95e3f0c19ea6b8ca5c.
Thanks haki for the report.
|
|
Forwardport of f7397bb7c8cb938161a9d43a16ee974f41c96a8b from stable/3.1.x.
|
|
inputs.
|
|
|
|
app_config.verbose_name is already in app_dict.
|
|
|
|
|
|
|
|
blocks from the base template.
|
|
|
|
navigation sidebar.
|
|
Thanks to Mariusz Felisiak for review.
|
|
|