Skip to content

Commit

Permalink
Support to the last versions of the django-bootstrap3-datetimepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
goinnn committed Aug 30, 2015
1 parent 40b6058 commit dfbc8b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inplaceeditform_bootstrap/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def render_value_edit(self):
if getattr(self.request, 'inplace_js_extra', None) is None:
self.request.inplace_js_extra = ''
scripts = ''.join(field.field.widget.media.render_js())
if not scripts in self.request.inplace_js_extra:
if scripts not in self.request.inplace_js_extra:
self.request.inplace_js_extra += scripts
return value
return render_to_string('inplaceeditform_bootstrap/adaptor_date/render_value_edit.html',
Expand All @@ -76,7 +76,7 @@ def name(self):
def __init__(self, *args, **kwargs):
super(AdaptorDateBootStrapField, self).__init__(*args, **kwargs)
self.filter_render_value = "date:'%s'" % settings.DATE_FORMAT
self.options = {"format": "yyyy-MM-dd",
self.options = {"format": "YYYY-MM-DD",
"pickTime": False}


Expand All @@ -89,4 +89,4 @@ def name(self):
def __init__(self, *args, **kwargs):
super(AdaptorDateTimeBootStrapField, self).__init__(*args, **kwargs)
self.filter_render_value = "date:'%s'" % settings.DATETIME_FORMAT
self.options = {}
self.options = {"format": "YYYY-MM-DD HH:mm:ss"}

0 comments on commit dfbc8b2

Please sign in to comment.