summaryrefslogtreecommitdiff
path: root/tests/admin_widgets
AgeCommit message (Collapse)Author
2021-03-18[3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for ↵Johannes Maron
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>
2021-01-12Fixed #29010, Fixed #29138 -- Added limit_choices_to and to_field support to ↵Johannes Maron
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.
2020-06-03Fixed CVE-2020-13596 -- Fixed potential XSS in admin ForeignKeyRawIdWidget.Jon Dufresne
2020-06-01Fixed #31536 -- Fixed rendering of disabled AdminFileWidget and ↵Carles Pina
ClearableFileInput.
2020-05-13Fixed #31576 -- Fixed selenium tests with headless mode.Mariusz Felisiak
Horizontal scrollbar doesn't appear with the headless mode on small windows, that's why window.scrollTo() is not an option for these tests. Tests changed after adding a navigation sidebar in 46fe506445666d8097945f0c1e8be11cfd644b28.
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-05Made DateTimePickerShortcutsSeleniumTests.test_date_time_picker_shortcuts() ↵Mariusz Felisiak
less flaky. Moved picking the current time closer to the actual click.
2020-05-04Changed `'%s' % value` pattern to `str(value)`.Nick Pope
2020-04-15Fixed #31462 -- Allowed overriding autocomplete/raw_id_fields/filter widgets ↵007
for ManyToManyFields with formfield_overrides.
2019-12-02Refs #29892 -- Made Selenium tests wait for popups to be ready.Jon Dufresne
2019-11-28Fixed #31042 -- Removed AdminSeleniumTestCase.get_css_value() in favor of ↵Jon Dufresne
Selenium .is_displayed(). All instances of AdminSeleniumTestCase.get_css_value() were used to inspect the display property.
2019-11-28Refs #29892 -- Replaced Selenium .submit() shim with .click() on the submit ↵Jon Dufresne
button. There is no WebDriver submit primitive. The Selenium project implements it as a convenience only. The geckodriver developers recommend against using it. Replace it with a real primitive, click on the submit button. Fixes failing Seleninum test test_date_time_picker_shortcuts when using the Firefox Selenium driver.
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-19Removed unnecessary numeric indexes in format strings.Jon Dufresne
2019-08-27Fixed #30722 -- Added default rate-limiting requests to admin's Select2 widget.Federico Jaramillo Martínez
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-03Fixed CVE-2019-12308 -- Made AdminURLFieldWidget validate URL before ↵Carlton Gibson
rendering clickable link.
2019-02-27Fixed #30179 -- Fixed form Media merging when pairwise merging is insufficient.Matthias Kestenholz
Thanks gasman for the tests, and codingjoe and timgraham for the review.
2019-01-28Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne
Used more specific errors (e.g. FileExistsError) as appropriate.
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-11-19Fixed #29961 -- Made RelatedFieldWidgetWrapper hide related item links if ↵redodo
wrapping a hidden widget.
2018-08-18Fixed #29426 -- Made UUID inputs in the admin match the width of a UUID.mackong
2018-03-15Fixed #29221 -- Corrected admin's autocomplete widget to add a space after ↵Artem Tabolin
custom classes.
2018-03-13Fixed #29213 -- Fixed autocomplete widget's translations for zh-hans/zh-hant.dzhuang
2018-02-01Fixed #29094 -- Fixed crash when entering an invalid uuid in ↵Tim Graham
ModelAdmin.raw_id_fields. Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89. Thanks Carel Burger for the report and fix.
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2018-01-20Fixed #29041 -- Changed SelectMultiple's multiple attribute to HTML5 boolean ↵Jon Dufresne
syntax.
2017-12-01Fixed #28871 -- Fixed initialization of autocomplete widgets in "Add ↵Tim Graham
another" inlines. Also allowed autocomplete widgets to work on AdminSites with a name other than 'admin'.
2017-09-18Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ↵Johannes Hoppe
ManyToManyField in the admin. Thanks Florian Apolloner and Tim Graham for review and contributing to the patch.
2017-08-26Complemented datetime picker selenium testClaude Paroz
This includes test coverage for the calendarMonth JS function in calendar.js
2017-06-09Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests.Collin Anderson
2017-06-06Fixed #28278 -- Fixed invalid HTML for a required AdminFileWidget.kakulukia
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-03-07Fixed #27905 -- Added RelatedFieldWidgetWrapper.value_omitted_from_data().Raphael Merx
2017-02-20Fixed #27850 -- Made RelatedFieldWidgetWrapper call render() of the wrapped ↵Collin Anderson
widget.
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-12-27Fixed #15667 -- Added template-based widget rendering.Preston Timmons
Thanks Carl Meyer and Tim Graham for contributing to the patch.
2016-12-08Imported specific models in a few tests that didn't.Tim Graham
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-11-12Fixed #27386 -- Wrapped admin's readonly fields in <div> rather than <p>.Jacob Rief
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-27Fixed #27327 -- Simplified time zone handling by requiring pytz.Tim Graham