diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-05-18 16:23:02 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:20:58 +0100 |
commit | 07e3e2e9c3da9f05634a45f65723504c229f2baa (patch) | |
tree | 7e3ea0f3306eea50e9f95a7c90b397c5515e97fb /bootstrap_datepicker/widgets.py | |
parent | 3b671732319aa14f194821a8f547ae280e1e0648 (diff) | |
download | Ishtar-07e3e2e9c3da9f05634a45f65723504c229f2baa.tar.bz2 Ishtar-07e3e2e9c3da9f05634a45f65723504c229f2baa.zip |
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)
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() |