Skip to content

Commit 4535c35

Browse files
committed
Select2Mixin now loads admin/js/jquery.init.js in order for i18n to work
1 parent d87a5ad commit 4535c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_select2/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def media(self):
155155
i18n_file = [f"{settings.SELECT2_I18N_PATH}/{self.i18n_name}.js"]
156156

157157
return forms.Media(
158-
js=select2_js + i18n_file + ["django_select2/django_select2.js"],
158+
js=select2_js + i18n_file + ["admin/js/jquery.init.js"] + ["django_select2/django_select2.js"],
159159
css={"screen": select2_css + ["django_select2/django_select2.css"]},
160160
)
161161

0 commit comments

Comments
 (0)