1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #34789 -- Prevented updateRelatedSelectsOptions from

adding entries to filter_horizontal chosen box.

Co-authored-by: yokeshwaran1 <yokesh440@yahoo.com>
This commit is contained in:
Devin Cox
2024-06-12 11:35:12 +02:00
committed by Sarah Boyce
parent f812b927a5
commit 719a42b589
5 changed files with 16 additions and 7 deletions

View File

@@ -110,6 +110,9 @@ class SeleniumTests(AdminSeleniumTestCase):
<option value="1" selected>{interesting_name}</option>
""",
)
# Check the newly added instance is not also added in the "to" box.
m2m_to = self.selenium.find_element(By.ID, "id_m2m_to")
self.assertHTMLEqual(m2m_to.get_attribute("innerHTML"), "")
m2m_box = self.selenium.find_element(By.ID, "id_m2m_from")
self.assertHTMLEqual(
m2m_box.get_attribute("innerHTML"),