Ticket #3131: select-multiple.diff

File select-multiple.diff, 579 bytes (added by ben <ben.dean.kawamura@…>, 18 years ago)

patch

  • widgets.py

     
    146146        output.append(u'</select>')
    147147        return u'\n'.join(output)
    148148
     149    def value_from_datadict(self, data, name):
     150        try:
     151            return data.getlist(name)
     152        except KeyError:
     153            return []
     154
    149155class RadioInput(StrAndUnicode):
    150156    "An object used by RadioFieldRenderer that represents a single <input type='radio'>."
    151157    def __init__(self, name, value, attrs, choice, index):
Back to Top