Skip to content

Commit 76d7395

Browse files
author
Niranj Rajasekaran
committed
Can Allow spaces in form names.
1 parent 157b466 commit 76d7395

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootstrap3_datetime/widgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def render(self, name, value, attrs=None):
131131
input_attrs['value'] = force_text(self._format_value(value))
132132
input_attrs = dict([(key, conditional_escape(val)) for key, val in input_attrs.items()]) # python2.6 compatible
133133
if not self.picker_id:
134-
self.picker_id = input_attrs.get('id', '') + '_picker'
134+
self.picker_id = (input_attrs.get('id', '') +
135+
'_pickers').replace(' ', '_')
135136
self.div_attrs['id'] = self.picker_id
136137
picker_id = conditional_escape(self.picker_id)
137138
div_attrs = dict(

0 commit comments

Comments
 (0)