Skip to content
This repository was archived by the owner on Jul 11, 2019. It is now read-only.

Commit 2fa9ea5

Browse files
committed
Merge pull request nkunihiko#27 from vivekfantain/master
Allow spaces in form names.
2 parents 4e2fa20 + 46204a7 commit 2fa9ea5

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
@@ -130,7 +130,8 @@ def render(self, name, value, attrs=None):
130130
input_attrs['value'] = force_text(self._format_value(value))
131131
input_attrs = dict([(key, conditional_escape(val)) for key, val in input_attrs.items()]) # python2.6 compatible
132132
if not self.picker_id:
133-
self.picker_id = input_attrs.get('id', '') + '_picker'
133+
self.picker_id = (input_attrs.get('id', '') +
134+
'_pickers').replace(' ', '_')
134135
self.div_attrs['id'] = self.picker_id
135136
picker_id = conditional_escape(self.picker_id)
136137
div_attrs = dict(

0 commit comments

Comments
 (0)