summaryrefslogtreecommitdiff
path: root/tests/admin_views
AgeCommit message (Collapse)Author
2023-11-30[5.0.x] Refs #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> Backport of af2fd368156439b79e4c1eb2278c433246771e44 from main
2023-11-27[5.0.x] Fixed #34982 -- Fixed admin's read-only password widget and help ↵Tom Carrick
texts alignment for tablet screen size. Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Backport of 729266c6f29c7a0677b24926a86a767ef3078b26 from main
2023-11-14[5.0.x] Fixed #34944 -- Made GeneratedField.output_field required.Mariusz Felisiak
Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. Backport of 5875f03ce61b85dfd9ad34f7b871c231c358d432 from main
2023-10-20[5.0.x] Fixed #34911 -- Corrected HTML heading levels on admindocs' main page.laserhyena
Backport of 21382e2743d06efbf5623e7c9b6dccf2a325669b from main
2023-10-19[5.0.x] Fixed #34905 -- Corrected admin's main content element rendered in ↵ontowhee
<main> tag. Regression in 91e617c743b21a0ebad01f18623a8b31f6f58500. Thanks Tom Carrick for the report. Backport of 89d2ae257bfdbe6f32c4671d97bf572623992ace from main
2023-10-11[5.0.x] Fixed #12241 -- Preserved query strings when using "Save and ↵Mariana
continue/add 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> Backport of fc62e17778dad9eab9e507d90d85a33d415f64a7 from main
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-09-14Fixed #34833 -- Made admin's main content render in <main> tag.Sarah Abderemane
2023-07-07Refs #9602 -- Moved AlreadyRegistered/NotRegistered exceptions to ↵Mariusz Felisiak
django.contrib.admin.exceptions.
2023-07-07Fixed #9602 -- Added AdminSite.get_model_admin().Mariusz Felisiak
This allows retrieving an admin class for the given model class without using internal attributes.
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-13Made SeleniumTests.test_select_multiple less flaky by adding explicit ↵sarahboyce
Selenium wait.
2023-06-12Fixed #34628 -- Improved icons accessibility of related widget wrapper in admin.Nina Menezes
This improves accessibility of icons by making them larger and grayscale (when not selected).
2023-06-05Fixed #34622 -- Improved accessibility of related widget wrapper in admin.Coen van der Kamp
This improves accessibility for screen reader users by adding "aria-disabled" and removing "alt". Thanks Thibaud Colas for the report.
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-04-26Fixed #34512 -- Restored breadcrumbs on admin app index view.Mariusz Felisiak
Thanks Adam (ataylor32) for the report. Regression in 872b61193b013a700ff88cf50f0eb2cf2c266ff7.
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-17Refs #34342 -- Added tests for handling sync streaming responses by test client.Alexandre Spaeth
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
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-07Fixed #34301 -- Made admin's submit_row check add permission for "Save as ↵Frederic Mheir
new" button.
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
2023-01-18Fixed #34233 -- Dropped support for Python 3.8 and 3.9.Mariusz Felisiak
2023-01-17Refs #32365 -- Removed support for pytz timezones per deprecation timeline.Mariusz Felisiak
2022-12-06Fixed AdminViewDeletedObjectsTest.test_cyclic failure when using --keepdb.Mariusz Felisiak
This changes to hardcoded pks when hardcoded fks are used.
2022-10-12Fixed #34042 -- Improved accessibility of admin's navigation sidebar.Rasmus Magnell
2022-10-07Refs #33990 -- Renamed SimpleTestCase.assertFormsetError() to ↵Gregor Gärtner
assertFormSetError(). Co-Authored-By: Michael Howitz <mh@gocept.com>
2022-09-28Fixed #34025 -- Fixed selecting ModelAdmin.autocomplete_fields after ↵David Sanders
adding/changing related instances via popups. Regression in c72f6f36c13a21f6db3d4f85d2d3cec87bad45e6. Thanks Alexandre da Silva for the report.
2022-09-28Removed obsolete test_skip_link_is_skipped_when_there_is_searchbar test.Mariusz Felisiak
searchbar doesn't have autofocus since d938b3b2577807ffd585f654caa0f37d9574e565.
2022-09-26Refs #34041 -- Added navigation landmark to breadcrumbs in admin.Florian Perucki
Thanks Thibaud Colas for pair programming.
2022-09-07Refs #24179 -- Fixed selenium tests for offset of admin selector boxes in ↵Mariusz Felisiak
fieldset. Regression in be63c78760924e1335603c36babd0ad6cfaea3c4.
2022-08-17Fixed #33878 -- Switched to system fonts in CSS.Tom Carrick
2022-08-05Fixed #33893 -- Reverted "Fixed #28889 -- Prevented double submission of ↵Fab
admin forms." Regression in fe7dbef5867c577995f0fc849d8dfdb8f2e6bbfa.
2022-07-31Fixed warnings per flake8 5.0.0.Mariusz Felisiak
2022-07-28Fixed #33726 -- Added skip-link to admin for keyboard navigation.Marcelo Galigniana
2022-05-23Refs #33725 -- Replaced deprecated find_element_by_css_selector() with ↵Mariusz Felisiak
find_elements(By.CSS_SELECTOR, …). Follow up to 90dcf271147693a8897f644c4c8943c5b73c02f8 and 2ccc0b22db6730ba0950b10bbc5238ae575e4a45.
2022-05-21Fixed #33725 -- Made hidden quick filter in admin's navigation sidebar not ↵Sankalp
focusable. Regression in d915dd1c5809d7c2bb3679751cd5277571dcd9f7. Follow up to 780473d75625d014cbe9b0acdea40b7a5970d5d8.