mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-13 01:33:16 +00:00
Fix Python 2.6 compatibility
This commit is contained in:
parent
620020c9f0
commit
3095941bb3
1 changed files with 3 additions and 3 deletions
|
|
@ -13,17 +13,17 @@ from taggit.forms import TagWidget
|
|||
|
||||
class AdminDateInput(WidgetWithScript, widgets.DateInput):
|
||||
def render_js_init(self, id_, name, value):
|
||||
return 'initDateChooser({});'.format(json.dumps(id_))
|
||||
return 'initDateChooser({0});'.format(json.dumps(id_))
|
||||
|
||||
|
||||
class AdminTimeInput(WidgetWithScript, widgets.TimeInput):
|
||||
def render_js_init(self, id_, name, value):
|
||||
return 'initTimeChooser({});'.format(json.dumps(id_))
|
||||
return 'initTimeChooser({0});'.format(json.dumps(id_))
|
||||
|
||||
|
||||
class AdminDateTimeInput(WidgetWithScript, widgets.DateTimeInput):
|
||||
def render_js_init(self, id_, name, value):
|
||||
return 'initDateTimeChooser({});'.format(json.dumps(id_))
|
||||
return 'initDateTimeChooser({0});'.format(json.dumps(id_))
|
||||
|
||||
|
||||
class AdminTagWidget(WidgetWithScript, TagWidget):
|
||||
|
|
|
|||
Loading…
Reference in a new issue