@@ -55,32 +55,32 @@ class Select2Conf(AppConf):
55
55
It has set `select2_` as a default value, which you can change if needed.
56
56
"""
57
57
58
- JS = "admin/js/vendor/select2/select2.full.min.js"
58
+ JS = [ "admin/js/vendor/select2/select2.full.min.js" ]
59
59
"""
60
60
The URI for the Select2 JS file. By default this points to version shipped with Django.
61
61
62
62
If you want to select the version of the JS library used, or want to serve it from
63
63
the local 'static' resources, add a line to your settings.py like so::
64
64
65
- SELECT2_JS = 'assets/js/select2.min.js'
65
+ SELECT2_JS = [ 'assets/js/select2.min.js']
66
66
67
67
If you provide your own JS and would not like Django-Select2 to load any, change
68
68
this setting to a blank string like so::
69
69
70
- SELECT2_JS = ''
70
+ SELECT2_JS = []
71
71
72
72
.. tip:: Change this setting to a local asset in your development environment to
73
73
develop without an Internet connection.
74
74
"""
75
75
76
- CSS = "admin/css/vendor/select2/select2.min.css"
76
+ CSS = [ "admin/css/vendor/select2/select2.min.css" ]
77
77
"""
78
78
The URI for the Select2 CSS file. By default this points to version shipped with Django.
79
79
80
80
If you want to select the version of the library used, or want to serve it from
81
81
the local 'static' resources, add a line to your settings.py like so::
82
82
83
- SELECT2_CSS = 'assets/css/select2.css'
83
+ SELECT2_CSS = [ 'assets/css/select2.css']
84
84
85
85
If you want to add more css (usually used in select2 themes), add a line
86
86
in settings.py like this::
@@ -93,7 +93,7 @@ class Select2Conf(AppConf):
93
93
If you provide your own CSS and would not like Django-Select2 to load any, change
94
94
this setting to a blank string like so::
95
95
96
- SELECT2_CSS = ''
96
+ SELECT2_CSS = []
97
97
98
98
.. tip:: Change this setting to a local asset in your development environment to
99
99
develop without an Internet connection.
0 commit comments