summaryrefslogtreecommitdiff
path: root/tests/admin_views/tests.py
AgeCommit message (Collapse)Author
2025-03-04[5.2.x] Fixed #36217 -- Restored pre_save/post_save signal emission via ↵antoliny0919
LogEntry.save() for single-object deletion in the admin. Regression in 40b3975e7d3e1464a733c69171ad7d38f8814280. Thanks smiling-watermelon for the report. Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Backport of c09bceef68e5abb79accedd12dade16aa6577a09 from main.
2025-03-01[5.2.x] Applied Black's 2025 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/25.1.0 Backport of ff3aaf036f0cb66cd8f404cd51c603e68aaa7676 from main
2025-02-04[5.2.x] Fixed #36055 -- Prevented overlap of object-tools buttons and page ↵antoliny0919
header in the admin. Backport of b1324a680add78de24c763911d0eefa19b9263bc from main.
2024-12-17Refs #35520 -- Fixed expected query count in admin_views tests.Tim Graham
In 53e674d5744faad61e52d8459c9198b2aa6f63dd, the count should only have been lowered for the case when savepoint are supported.
2024-11-20Fixed #34619 -- Associated FilteredSelectMultiple elements to their label ↵GappleBee
and help text.
2024-11-11Fixed #35903 -- Made admin's "view on site" URL accept non-integer ↵Tim Graham
ContentType pks.
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-10-16Refs #35727 -- Updated response.content.decode calls to use the ↵SaJH
HttpResponse.text property. Signed-off-by: SaJH <wogur981208@gmail.com>
2024-10-08Fixed #35809 -- Set background color for selected rows in the admin's form ↵nessita
select widget. Regression in b47bdb4cd9149ee2a39bf1cc9996a36a940bd7d9. Thank you Giannis Terzopoulos for the review, and Tom Carrick and Sarah Boyce for the review.
2024-09-30Fixed #35797 -- Removed debug context processor from default project template.Marc Gibbons
2024-09-02Refs #35706 -- Prefixed 'Error:' to titles of admin pages with form errors.sanjeevholla26
This improves the screen reader experience.
2024-08-20Fixed #35686 -- Added table headers to app list tables for screen readers.Sarah Boyce
2024-08-07Fixed #35639 -- Improved admin's delete confirmation page title.Matthias Kestenholz
2024-07-04Fixed #35520 -- Avoided opening transaction for read-only ModelAdmin requests.Jake Howard
2024-06-18Fixed #35505 -- Added extrabody block to admin/base.html.stefan.ivic
2024-05-29Fixed 35467 -- Replaced urlparse with urlsplit where appropriate.Jake Howard
This work should not generate any change of functionality, and `urlsplit` is approximately 6x faster. Most use cases of `urlparse` didn't touch the path, so they can be converted to `urlsplit` without any issue. Most of those which do use `.path`, simply parse the URL, mutate the querystring, then put them back together, which is also fine (so long as urlunsplit is used).
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-16Fixed typos in test docstrings.Mariusz Felisiak
2024-05-02Added a high contrast mode to screenshot cases.Sarah Boyce
Thank you to Sarah Abderemane and Nick Pope for the reviews.
2024-01-24Fixed #35115 -- Made admin's footer render in <footer> tag.Marijke Luttekes
2023-12-15Fixed #34909 -- Associated links in admin navigation sidebar with row ↵Eliana Rosselli
descriptions. This adds aria-describedby attribute to the models' links in the admin navigation sidebar. Thanks Thibaud Colas for the review. Co-authored-by: Dara Silvera <dsilvera@octobot.io>
2023-11-30Refs #34995 -- Made Selenium tests more robust for admin_views and ↵Sarah Boyce
admin_widgets suites. Depending on screen sizes, the selenium tests that would "click" or interact with an element outside the scope of the visible window would produce test failures (raising ElementNotInteractableException in CI runs). This branch switches those to using ActionChains, which ensures that the click (or other interaction) is performed only after successfully completing the move to the relevant element. Co-authored-by: Tom Carrick <tom@carrick.eu>
2023-11-27Fixed #34982 -- Fixed admin's read-only password widget and help texts ↵Tom Carrick
alignment for tablet screen size. Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2023-10-31Fixed #34462 -- Made admin log actions in bulk.Akash Kumar Sen
This also deprecates ModelAdmin.log_deletion() and LogEntryManager.log_action().
2023-10-20Fixed #34911 -- Corrected HTML heading levels on admindocs' main page.laserhyena
2023-10-19Fixed #34905 -- Corrected admin's main content element rendered in <main> tag.ontowhee
Regression in 91e617c743b21a0ebad01f18623a8b31f6f58500. Thanks Tom Carrick for the report.
2023-10-18Refs #34043 -- Added --screenshots option to runtests.py and selenium tests.Sarah Boyce
2023-10-16Refs #34043 -- Added context managers to SeleniumTestCase for changing ↵Sarah Boyce
window size.
2023-10-11Fixed #12241 -- Preserved query strings when using "Save and continue/add ↵Mariana
another" in admin. Co-authored-by: Grady Yu <gradyy@users.noreply.github.com> Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com> Co-authored-by: Matthew Newton <matthewn@berkeley.edu>
2023-09-26Fixed #34835 -- Made admin's changelist filters render in <nav> tag.lstaana
2023-09-16Fixed #31558 -- Added support for boolean attribute on properties in ↵Ryanwalker277
ModelAdmin.list_display.
2023-09-16Fixed #34842 -- Fixed ModelAdmin.readonly_fields crash with GeneratedFields.Paolo Melchiorre
2023-09-15Fixed #34832 -- Made admin's header content render in <header> tag.Sarah Abderemane
Header tag was changed to <header> get the landmark banner for accessibility.
2023-07-05Made some Selenium tests less flaky by adding explicit wait.sarahboyce
2023-07-04Fixed isolation of SeleniumTests.test_search_input_filtered_page() test.Mariusz Felisiak
Test crashed when the sidebar was not closed.
2023-07-04Made ↵Sarah Boyce
SeleniumTests.test_updating_related_objects_updates_fk_selects_except_autocompletes() test less flaky by adding explicit Selenium wait.
2023-06-19Fixed #34656 -- Fixed unclosed div in admin password change template.Yaser Amiri
Regression in 6991880109e35c879b71b7d9d9c154baeec12b89.
2023-06-18Made SeleniumTests.test_inline_uuid_pk_add_with_popup less flaky by waiting ↵sarahboyce
until popup is closed.
2023-06-02Fixed #34618 -- Added icon descriptions in "Recent Actions" on the admin index.Nina Menezes
2023-06-01Fixed #34617 -- Enabled user zooming on mobile devices in the admin.Cheuk Ting Ho
2023-05-24Fixed #34592 -- Removed Safari/Chrome workaround for system fonts.minusf
2023-04-28Fixed #34380 -- Allowed specifying a default URL scheme in forms.URLField.Coen van der Kamp
This also deprecates "http" as the default scheme.
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-03-03Fixed #32539 -- Added toggleable facet filters to ModelAdmin.sarahboyce
Thanks Carlton Gibson, Simon Willison, David Smith, and Mariusz Felisiak for reviews.
2023-03-03Moved duplicate user declarations to setUpTestData() in ↵Mariusz Felisiak
AdminSiteFinalCatchAllPatternTests.
2023-03-03Fixed #34377 -- Fixed preserving query strings in AdminSite.catch_all_view().Dominique Bischof
Included full path when redirecting with append slash to include query strings. Regression in ba31b0103442ac891fb3cb98f316781254e366c3.
2023-03-03Refs #31747 -- Added more tests for preserving query strings when redirect ↵Dominique Bischof
with APPEND_SLASH in admin.
2023-02-13Fixed #34316 -- Fixed layout of admin password change forms and help texts.sarahboyce
Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd.
2023-02-08Fixed #34315 -- Preserved admin changelist filters on "Close" button.Bakdolot
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