1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[5.1.x] Fixed #34789 -- Prevented updateRelatedSelectsOptions from

adding entries to filter_horizontal chosen box.

Co-authored-by: yokeshwaran1 <yokesh440@yahoo.com>

Backport of 719a42b589 from main.
This commit is contained in:
Devin Cox
2024-06-12 11:35:12 +02:00
committed by Sarah Boyce
parent fed3efda15
commit 49a3a8d9a2
5 changed files with 16 additions and 7 deletions

View File

@@ -948,7 +948,7 @@ class RelatedFieldWidgetWrapperTests(SimpleTestCase):
output = wrapper.render("stream", "value")
expected = """
<div class="related-widget-wrapper" data-model-ref="releaseevent">
<select name="stream">
<select name="stream" data-context="available-source">
</select>
<a class="related-widget-wrapper-link add-related" id="add_id_stream"
data-popup="yes" title="Add another release event"