From 07e3e2e9c3da9f05634a45f65723504c229f2baa Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 May 2022 16:23:02 +0200 Subject: Migration to Django 2.2 - many fixes - remove redondant permissions - fix missing kwargs for widget and form fields - fix default to callable for model field - quick and dirty fix for datepicker - is_authenticated() -> is_authenticated - fix registration urls - remove six usage (no more python2) --- bootstrap_datepicker/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstrap_datepicker') 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() -- cgit v1.2.3