Skip to content

Commit 99a0d87

Browse files
committed
Chagne defaults to be lists
1 parent a66f744 commit 99a0d87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

django_select2/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ class Select2Conf(AppConf):
5555
It has set `select2_` as a default value, which you can change if needed.
5656
"""
5757

58-
JS = "admin/js/vendor/select2/select2.full.min.js"
58+
JS = ["admin/js/vendor/select2/select2.full.min.js"]
5959
"""
6060
The URI for the Select2 JS file. By default this points to version shipped with Django.
6161
6262
If you want to select the version of the JS library used, or want to serve it from
6363
the local 'static' resources, add a line to your settings.py like so::
6464
65-
SELECT2_JS = 'assets/js/select2.min.js'
65+
SELECT2_JS = ['assets/js/select2.min.js']
6666
6767
If you provide your own JS and would not like Django-Select2 to load any, change
6868
this setting to a blank string like so::
@@ -73,14 +73,14 @@ class Select2Conf(AppConf):
7373
develop without an Internet connection.
7474
"""
7575

76-
CSS = "admin/css/vendor/select2/select2.min.css"
76+
CSS = ["admin/css/vendor/select2/select2.min.css"]
7777
"""
7878
The URI for the Select2 CSS file. By default this points to version shipped with Django.
7979
8080
If you want to select the version of the library used, or want to serve it from
8181
the local 'static' resources, add a line to your settings.py like so::
8282
83-
SELECT2_CSS = 'assets/css/select2.css'
83+
SELECT2_CSS = ['assets/css/select2.css']
8484
8585
If you want to add more css (usually used in select2 themes), add a line
8686
in settings.py like this::

0 commit comments

Comments
 (0)