diff options
Diffstat (limited to 'bootstrap_datepicker/widgets.py')
-rw-r--r-- | bootstrap_datepicker/widgets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap_datepicker/widgets.py b/bootstrap_datepicker/widgets.py index 338319311..5a4a1e874 100644 --- a/bootstrap_datepicker/widgets.py +++ b/bootstrap_datepicker/widgets.py @@ -52,7 +52,7 @@ class DatePicker(DateTimeInput): yield 'js/locales/bootstrap-datepicker.%s.min.js' % ( lang) - js = JSFiles() + js = list(JSFiles()) css = {'all': ('css/bootstrap-datepicker3.standalone.min.css',), } # http://bootstrap-datepicker.readthedocs.org/en/stable/options.html#format # http://docs.python.org/2/library/datetime.html#strftime-strptime-behavior @@ -134,7 +134,7 @@ class DatePicker(DateTimeInput): value = value.strftime(py_format) return value - def render(self, name, value, attrs=None): + def render(self, name, value, attrs=None, renderer=None): if value is None: value = '' extra_attrs = dict() |