summaryrefslogtreecommitdiff
path: root/tests/admin_widgets
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34380 -- Allowed specifying a default URL scheme in forms.URLField.Coen van der Kamp2023-04-281-1/+6
| | | | This also deprecates "http" as the default scheme.
* Fixed #34488 -- Made ClearableFileInput preserve "Clear" checked attribute ↵Marcelo Galigniana2023-04-211-30/+68
| | | | when form is invalid.
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-011-3/+1
| | | | | | | | 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
* Fixed #34233 -- Dropped support for Python 3.8 and 3.9.Mariusz Felisiak2023-01-181-5/+1
|
* Refs #19215 -- Fixed admin_widgets tests if Pillow isn't installed.Mariusz Felisiak2022-10-272-5/+14
| | | Follow up to c0fc1b5302f5d9d82e2255fb5758321fbac34949.
* Fixed #19215 -- Fixed rendering ClearableFileInput when editing with invalid ↵Marcelo Galigniana2022-10-253-0/+63
| | | | | | files. Thanks Michael Cardillo for the initial patch.
* Fixed flaky test_ForeignKey_using_to_field test.Marcelo Galigniana2022-10-241-0/+5
|
* Fixed #33888 -- Fixed get_select2_language() crash with no language activated.Claude Paroz2022-08-031-0/+1
| | | | Regression in 3079133c73f3b8b0e929673b06b62dce1f54be71.
* Fixed #33805 -- Made admin's many-to-many widgets do not display help text ↵Ankur2022-06-281-0/+20
| | | | for selecting values when allow_multiple_selected is False.
* Fixed #33524 -- Allowed overriding empty_label for ForeignKey in ↵Hrushikesh Vaidya2022-02-281-0/+12
| | | | ModelAdmin.radio_fields.
* Fixed #33267 -- Added link to related item to related widget wrapper in admin.Shubh18152022-02-251-0/+13
|
* Fixed #33514 -- Added fallbacks to subsequent language codes in Select2 ↵My-Name-Is-Nabil2022-02-181-0/+7
| | | | translations.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-16/+31
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-075-551/+833
|
* Fixed #32545 -- Improved admin widget for raw_id_fields for UUIDFields.Shubh18152021-11-291-5/+13
| | | | Co-Authored-By: Jerome Leclanche <jerome@leclan.ch>
* Fixed #33211 -- Updated tests for Selenium 4.0.0.Carlton Gibson2021-10-211-74/+89
| | | | | Replaced deprecated `find_element[s]_by_*()` usages, in favour of `find_element[s]()` with an explicit `By`.
* Refs #33211 -- Added assertCountSeleniumElements() test helper.Carlton Gibson2021-10-211-5/+3
|
* Fixed #33070 -- Fixed loading translations with language subtags in admin's ↵Cleiton Lima2021-09-211-1/+2
| | | | Select2 widget.
* Fixed #32365 -- Made zoneinfo the default timezone implementation.Carlton Gibson2021-09-161-3/+6
| | | | | Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick Pope, and Paul Ganssle for reviews.
* Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz2021-09-141-2/+2
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed capitalization of "ECMAScript" and "JavaScript".Nick Pope2021-04-291-1/+1
|
* Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases.Johannes Maron2021-03-184-5/+61
| | | | | | | | | | 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. 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>
* Fixed #29010, Fixed #29138 -- Added limit_choices_to and to_field support to ↵Johannes Maron2021-01-123-13/+17
| | | | | | | 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.
* Fixed CVE-2020-13596 -- Fixed potential XSS in admin ForeignKeyRawIdWidget.Jon Dufresne2020-06-032-0/+19
|
* Fixed #31536 -- Fixed rendering of disabled AdminFileWidget and ↵Carles Pina2020-06-011-0/+14
| | | | ClearableFileInput.
* Fixed #31576 -- Fixed selenium tests with headless mode.Mariusz Felisiak2020-05-131-0/+3
| | | | | | | | 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.
* Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne2020-05-111-9/+9
| | | | | The method has been available since Python 3.6. The shorter syntax is also marginally faster.
* Made DateTimePickerShortcutsSeleniumTests.test_date_time_picker_shortcuts() ↵Mariusz Felisiak2020-05-051-2/+1
| | | | | | less flaky. Moved picking the current time closer to the actual click.
* Changed `'%s' % value` pattern to `str(value)`.Nick Pope2020-05-041-1/+1
|
* Fixed #31462 -- Allowed overriding autocomplete/raw_id_fields/filter widgets ↵0072020-04-151-1/+18
| | | | for ManyToManyFields with formfield_overrides.
* Refs #29892 -- Made Selenium tests wait for popups to be ready.Jon Dufresne2019-12-021-12/+6
|
* Fixed #31042 -- Removed AdminSeleniumTestCase.get_css_value() in favor of ↵Jon Dufresne2019-11-281-8/+8
| | | | | | Selenium .is_displayed(). All instances of AdminSeleniumTestCase.get_css_value() were used to inspect the display property.
* Refs #29892 -- Replaced Selenium .submit() shim with .click() on the submit ↵Jon Dufresne2019-11-281-1/+1
| | | | | | | | | | 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.
* Fixed #30975 -- Replaced custom get_select_option with Selenium's ↵Johannes Hoppe2019-11-271-21/+25
| | | | select_by_value.
* Fixed #30973 -- Converted selenium tests wait_page_loaded to context manager.Johannes Hoppe2019-11-271-8/+8
|
* Removed unnecessary numeric indexes in format strings.Jon Dufresne2019-11-191-1/+1
|
* Fixed #30722 -- Added default rate-limiting requests to admin's Select2 widget.Federico Jaramillo Martínez2019-08-271-0/+1
|
* Fixed broken selenium tests after 42b9a23267f14be39b9b00958e18d5746783208e.Mariusz Felisiak2019-06-301-1/+1
|
* Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne2019-06-281-1/+1
| | | | Thanks Claude Paroz for assistance with translations.
* Fixed CVE-2019-12308 -- Made AdminURLFieldWidget validate URL before ↵Carlton Gibson2019-06-031-8/+15
| | | | rendering clickable link.
* Fixed #30179 -- Fixed form Media merging when pairwise merging is insufficient.Matthias Kestenholz2019-02-271-1/+1
| | | | Thanks gasman for the tests, and codingjoe and timgraham for the review.
* Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne2019-01-281-1/+1
| | | | Used more specific errors (e.g. FileExistsError) as appropriate.
* Updated test URL patterns to use path() and re_path().Tim Graham2018-12-311-2/+2
|
* Followed style guide for model attribute ordering.Matt Wiens2018-12-271-3/+3
|
* Fixed #29961 -- Made RelatedFieldWidgetWrapper hide related item links if ↵redodo2018-11-191-0/+23
| | | | wrapping a hidden widget.
* Fixed #29426 -- Made UUID inputs in the admin match the width of a UUID.mackong2018-08-181-0/+14
|
* Fixed #29221 -- Corrected admin's autocomplete widget to add a space after ↵Artem Tabolin2018-03-151-1/+6
| | | | custom classes.
* Fixed #29213 -- Fixed autocomplete widget's translations for zh-hans/zh-hant.dzhuang2018-03-131-1/+2
|
* Fixed #29094 -- Fixed crash when entering an invalid uuid in ↵Tim Graham2018-02-012-1/+10
| | | | | | | | ModelAdmin.raw_id_fields. Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89. Thanks Carel Burger for the report and fix.
* Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne2018-01-211-28/+28
|