=== modified file 'django/newforms/widgets.py'
|
|
|
334 | 334 | value = data.get(name, None) |
335 | 335 | return {u'2': True, u'3': False, True: True, False: False}.get(value, None) |
336 | 336 | |
337 | | class SelectMultiple(Widget): |
338 | | def __init__(self, attrs=None, choices=()): |
339 | | super(SelectMultiple, self).__init__(attrs) |
340 | | # choices can be any iterable |
341 | | self.choices = choices |
342 | | |
| 337 | class SelectMultiple(Select): |
343 | 338 | def render(self, name, value, attrs=None, choices=()): |
344 | 339 | if value is None: value = [] |
345 | 340 | final_attrs = self.build_attrs(attrs, name=name) |