summaryrefslogtreecommitdiff
path: root/tests/admin_inlines
AgeCommit message (Collapse)Author
2026-02-28Fixed #36914 -- Fixed background-color to also apply to select options in ↵Antoliny0919
TabularInline.
2026-02-27Fixed #34643 -- Moved inputs beneath labels and errors in admin forms.antoliny0919
Thanks Sarah Boyce and Jacob Walls for reviews. Co-authored-by: Hrushikesh Vaidya <hrushikeshrv@gmail.com>
2026-02-10Modified tests to format PKs with %s rather than %d.Tim Graham
It's how Django formats values internally and makes tests compatible with databases that use non-integer primary keys.
2025-09-17Fixed #36601 -- Fixed color contrast of FilteredSelectMultiple widget chosen ↵antoliny0919
labels in TabularInlines. Regression in a0f50c2a483678d31bd1ad6f08fd3a0b8399e27b.
2025-08-26Fixed #36556 -- Fixed TabularInline width overflowing the page.antoliny0919
2025-08-05Fixed #36079 -- Fixed text size of TabularInline object titles.antoliny0919
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-03-27Fixed #34917 -- Underlined links in the main content area of the admin.antoliny0919
2025-02-04Fixed #36069 -- Fixed the delete button position in TabularInlines.antoliny0919
2024-11-20Fixed #34619 -- Associated FilteredSelectMultiple elements to their label ↵GappleBee
and help text.
2024-10-31Fixed #35876 -- Displayed non-ASCII fieldset names when rendering ↵Sarah Boyce
ModelAdmin.fieldsets. Thank you to Namhong Kim for the report, and to Mariusz Felisiak and Marijke Luttekes for the review. Regression in 01ed59f753139afb514170ee7f7384c155ecbc2d.
2024-09-12Fixed #35755 -- Hid help text of hidden fields in admin fieldsets.Richard Laager
Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd.
2024-08-30Fixed #35716 -- Fixed VariableDoesNotExist when rendering admin fieldsets.Sarah Boyce
Regression in 01ed59f753139afb514170ee7f7384c155ecbc2d. Thank you to Fábio Domingues and Marijke Luttekes for the report, and thank you to Natalia Bidart for the review.
2024-07-15Refs #35464 -- Added test to cover layout of TabularInline fieldsets.Maryam Yusuf
2024-07-15Removed duplicate inline from tests.admin_inlines.admin.PhotographerAdmin.Sarah Boyce
2024-06-25Fixed #35558 -- Increased inline H3 headers color prominence in admin change ↵Sarah Boyce
page.
2024-05-22Fixed #35393 -- Added excluded pk as a hidden field to the inline admin.Willem Van Onsem
2024-05-22Fixed #35189 -- Improved admin collapsible fieldsets by using <details> ↵Marijke Luttekes
elements. This work improves the accessibility of the add and change pages in the admin site by adding <details> and <summary> elements to the collapsible fieldsets. This has the nice side effect of no longer requiring custom JavaScript helpers to implement the fieldsets' show/hide capabilities. Thanks to James Scholes for the accessibility advice, and to Sarah Boyce and Tom Carrick for reviews. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-05-22Refs #35189 -- Improved admin fieldset's accessibility by setting ↵Marijke Luttekes
aria-labelledby. Before this change, HTML <fieldset> elements in the admin site did not have an associated label to describe them. This commit defines a unique HTML id for the heading labeling a fieldset, and sets its aria-labelledby property to link the heading with the fieldset.
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
2023-07-06Fixed #32819 -- Established relationship between form fields and their help ↵Gregor Jerše
text. Thanks Nimra for the initial patch. Thanks Natalia Bidart, Thibaud Colas, David Smith, and Mariusz Felisiak for reviews.
2023-03-27Fixed #34383 -- Fixed layout of admin fieldsets with multiple fields on the ↵Tom Carrick
same line. Thanks Antonio Candido Nazareth junior for the report. Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
2022-10-31Used more augmented assignment statements.Nick Pope
Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
2022-08-18Used CSS flex for admin's submit row.Tom Carrick
2022-04-06Refs #31617 -- Added an id for helptext in admin forms.David Smith
2022-03-01Fixed #33547 -- Fixed error when rendering invalid inlines with readonly ↵Mariusz Felisiak
fields in admin. Regression in de95c826673be9ea519acc86fd898631d1a11356. Thanks David Glenck for the report.
2022-02-22Removed redundant QuerySet.all() calls in docs and tests.Nick Pope
Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-10-21Fixed #33211 -- Updated tests for Selenium 4.0.0.Carlton Gibson
Replaced deprecated `find_element[s]_by_*()` usages, in favour of `find_element[s]()` with an explicit `By`.
2021-10-21Refs #33211 -- Added assertCountSeleniumElements() test helper.Carlton Gibson
2021-09-22Removed blocking wait in admin inlines selenium test.Carlton Gibson
find_elements_by_css_selector() implicitly waits the default timeout (10 seconds) looking for missing elements.
2021-09-21Fixed #33111 -- Fixed passing object to ModelAdmin.get_inlines() when ↵Hasan Ramezani
editing in admin change view. ModelAdmin.get_inlines() should get an unmutated object when creating formsets during POST request.
2021-09-14Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-09-10Fixed #31867 -- Made TabularInline handling of hidden fields with view-only ↵antoinehumbert
permissions consistent with StackedInline.
2021-09-08Fixed #32219 -- Made InlineModelAdmin.verbose_name_plural fallback to its ↵Siburg
verbose_name.
2021-09-08Refs #32219 -- Added admin model inline tests for verbose names.Siburg
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-06-07Fixed typos in test comments.luzpaz
2021-02-19Refs #30231 -- Fixed SeleniumTests.test_inlines_verbose_name with headless mode.David Smith
Horizontal scrollbar doesn't appear with the headless mode on small windows, that's why window.scrollTo() is not an option for these tests even after fixing #32459.
2021-02-16Fixed #30231 -- Fixed admin filter horizontal/vertical verbose_name generation.Teresa Partida
Co-authored-by: David Smith <smithdc@gmail.com>
2021-01-18Fixed #18549 -- Fixed heading for inlines with a OneToOneField.Timothy McCurrach
Used verbose_name instead of verbose_name_plural.
2021-01-18Refs #18549 -- Added test for heading of foreign key inlines.Timothy McCurrach
2020-10-28Refs #25780 -- Removed redundant status code assertions from tests.Jon Dufresne
2020-05-14Fixed #31524 -- Removed minified static assets from the admin.Jon Dufresne
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-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-22Refs #29892 -- Fixed selenium test test_inline_formset_error_input_border on ↵Jon Dufresne
Firefox. Firefox does not include shorthand properties, such as "border", in the computed CSS properties object. This is documented at MDN: https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle > The returned CSSStyleDeclaration object contains active values for CSS > property longhand names. For example, border-bottom-width instead of > the border-width and border shorthand property names. It is safest to > query values with only longhand names like font-size. Shorthand names > like font will not work with most browsers. This difference between Firefox and Chrome is also discussed in the stackoverflow thread at: https://stackoverflow.com/a/32296604
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