Fix bug in DateFieldRenderer when no format specified
This commit is contained in:
parent
48713bb3cf
commit
ac8c63219c
|
@ -65,9 +65,11 @@ class DateFieldRenderer(CustomFieldRenderer, fa.DateFieldRenderer):
|
||||||
Date field renderer which uses jQuery UI datepicker widget when rendering
|
Date field renderer which uses jQuery UI datepicker widget when rendering
|
||||||
in edit mode.
|
in edit mode.
|
||||||
"""
|
"""
|
||||||
|
date_format = '%Y-%m-%d'
|
||||||
change_year = False
|
change_year = False
|
||||||
|
|
||||||
def init(self, date_format=None, change_year=False):
|
def init(self, date_format=None, change_year=False):
|
||||||
|
if date_format:
|
||||||
self.date_format = date_format
|
self.date_format = date_format
|
||||||
self.change_year = change_year
|
self.change_year = change_year
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue