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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user