Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
As described in #249 and #297 django-select2 does not currently work with selects added dynamically in the Django admin. The solution was implemented in #249 and all credit should go to Jurrian Tromp. I only added a small correction: ```diff - jqRow.find('.select2-container').remove() + jqRow.find('.django-select2').parent().find('.select2-container').remove() ``` to only remove `.select2-container` when it is a sibling of `.django-select2`. Otherwise the wrong `.select2-container` might get deleted. --------- Co-authored-by: Johannes Maron <[email protected]>
- Loading branch information