Skip to content
Prev Previous commit
Call djangoSelect2 instead of djangoAdminSelect2
  • Loading branch information
mardukbp committed Nov 25, 2024
commit f9ed100f8f19daa62694c04727dadefc44ca0b19
2 changes: 1 addition & 1 deletion django_select2/static/django_select2/django_select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}

$(function () {
$('.django-select2').not('[name*=__prefix__]').djangoAdminSelect2()
$('.django-select2').not('[name*=__prefix__]').djangoSelect2()

document.addEventListener('formset:added', (event) => {
$(event.target).find('.django-select2').djangoSelect2()
Expand Down
Loading