summaryrefslogtreecommitdiff
path: root/tests/admin_views/tests.py
AgeCommit message (Collapse)Author
2020-06-17Refs #31670 -- Removed whitelist/blacklist terminology in docs and comments.David Smith
2020-05-27Fixed #11157 -- Stopped removing stop words in admin's prepopulated_fields.Scott Cranfill
Co-Authored-By: Andy Chosak <andy@chosak.org>
2020-05-15Fixed #31590 -- Fixed ModelAdmin.date_hierarchy crash with an empty QuerySet.kjpc-tech
Regression in 55cdf6c52db07f29128741b8734a523ed042e465.
2020-05-14Fixed #31524 -- Removed minified static assets from the admin.Jon Dufresne
2020-05-14Fixed #31575 -- Added system check for admin sidebar request context ↵Jon Dufresne
processor dependency. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
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-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-05-04Changed `'%s' % value` pattern to `str(value)`.Nick Pope
2020-04-27Removed unnecessary tuple wrapping of single format string argument.François Freitag
2020-04-20Capitalized Unicode in docs, strings, and comments.Jon Dufresne
2020-03-25Fixed #29724 -- Fixed timezone handling in ModelAdmin.date_hierarchy queries.Hasan Ramezani
Thanks Alexander Holmbäck for the initial patch.
2020-03-25Fixed intermittent SeleniumTests.test_prepopulated_fields failure.Carlton Gibson
Element would occasionally be outside of frame.
2020-03-16Fixed #31361 -- Fixed invalid action="" in admin forms.Jon Dufresne
The attribute action="" (empty string) on the <form> element is invalid HTML5. The spec (https://html.spec.whatwg.org/#attr-fs-action) says: > The action and formaction content attributes, if specified, must have > a value that is a valid non-empty URL potentially surrounded by > spaces. Emphasis on non-empty. The action attribute is allowed to be omitted, in which case the current URL is used which is the same behavior as now.
2020-03-16Added novalidate HTML attribute to ModelAdmin.add_view() and change_view() ↵Jon Dufresne
tests.
2019-12-30Fixed #30892 -- Fixed slugify() and admin's URLify.js for "İ".Sjbrgsn
Thanks Luis Nell for the implementation idea and very detailed report. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-12-02Refs #29892 -- Made Selenium tests wait for popups to be ready.Jon Dufresne
2019-12-02Fixed CVE-2019-19118 -- Required edit permissions on parent model for ↵Carlton Gibson
editable inlines in admin. Thank you to Shen Ying for reporting this issue.
2019-11-28Fixed #29892 -- Added .wait_page_loaded() in ↵Jon Dufresne
SeleniumTests.test_first_field_focus().
2019-11-27Fixed #30975 -- Replaced custom get_select_option with Selenium's ↵Johannes Hoppe
select_by_value.
2019-11-27Fixed #30973 -- Converted selenium tests wait_page_loaded to context manager.Johannes Hoppe
2019-11-19Fixed #30981 -- Fixed admin changelist crash when using F() or OrderBy() ↵Hasan Ramezani
expressions in admin_order_field.
2019-11-19Fixed #27272 -- Added an on_delete RESTRICT handler to allow cascading ↵Daniel Izquierdo
deletions while protecting direct ones.
2019-07-02Fixed typos in comments and docs.Min ho Kim
2019-06-30Fixed broken selenium tests after 42b9a23267f14be39b9b00958e18d5746783208e.Mariusz Felisiak
2019-06-28Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne
Thanks Claude Paroz for assistance with translations.
2019-06-14Fixed #12952 -- Adjusted admin log change messages to use form labels ↵Sanyam Khurana
instead of field names.
2019-03-24Fixed #30259 -- Added support for admin_order_field attribute on properties ↵Jani Tiainen
in ModelAdmin.list_display.
2019-02-28Fixed #30221 -- Made label suffix of admin's read-only fields translatable.Etienne Chové
2019-01-16Fixed #11154, #22270 -- Made proxy model permissions use correct content type.Arthur Rio
Co-Authored-By: Simon Charette <charette.s@gmail.com> Co-Authored-By: Antoine Catton <acatton@fusionbox.com>
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2019-01-01Fixed #30050 -- Fixed InlineModelAdmin.has_change_permission() called with ↵Tim Graham
non-None obj during add. Thanks andreage for the report and suggested fix.
2018-12-03Fixed #29930 -- Allowed editing in admin with view-only inlines.Carlton Gibson
Co-authored-by: Tim Graham <timograham@gmail.com>
2018-11-28Fixed #29929 -- Fixed admin view-only change form crash when using ↵Basil Dubyk
ModelAdmin.prepopulated_fields.
2018-11-27Adjusted code style of a few test data setup methods.Simon Charette
Thanks Mariusz for suggesting it.
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-11-16Fixed typo in tests/admin_views/tests.py.Tim Graham
2018-09-25Simplified AdminFieldExtractionMixin.get_admin_form_fields().Sergey Fedoseev
2018-08-20Fixed #29682 -- Fixed admin change form crash if a view-only model's form ↵Tim Graham
has an extra field.
2018-08-17Fixed #29663 -- Made admin change view redirect to changelist with view ↵Jon Dufresne
permission.
2018-08-12Refs #27804 -- Used subTest in AdminViewPermissionsTest.Jon Dufresne
2018-08-01Fixed typos in comments and docs.luz.paz
2018-06-20Refs #27398 -- Simplified some tests with assertRedirects().Tim Graham
2018-06-15Fixed #29487 -- Accounted for object level permissions when calculating ↵Paulo
change view's read-only fields. Thanks Matthew Frazier for the report and fix.
2018-05-23Fixed #29417 -- Corrected two admin page titles for view-only users.Ramiro Morales
2018-05-16Fixed #8936 -- Added a view permission and a read-only admin.olivierdalang
Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com>
2018-05-15Added assertion for admin change form's "save and continue editing" message.Tim Graham
2018-05-07Replaced django.test.utils.patch_logger() with assertLogs().Claude Paroz
Thanks Tim Graham for the review.
2018-04-05Fixed #29248 -- Renamed admin CSS class field-box to fieldBox.Faheel Ahmad
2018-03-15Fixed #28959 -- Fixed 'No, take me back' button on admin's inline popup.Josh Schneier
2018-02-24Fixed #17962 -- Added ModelAdmin.get_deleted_objects().Becky Smith