Ticket #14407: patch.diff

File patch.diff, 616 bytes (added by Germano Gabbianelli, 14 years ago)

I've not tested it

  • django/contrib/admin/widgets.py

    diff -r a8a9a277716d django/contrib/admin/widgets.py
    a b  
    172172        return ''
    173173
    174174    def value_from_datadict(self, data, files, name):
    175         value = data.get(name, None)
    176         if value and ',' in value:
    177             return data[name].split(',')
     175        value = data.get(name)
    178176        if value:
    179             return [value]
    180         return None
     177            return value.split(',')
    181178
    182179    def _has_changed(self, initial, data):
    183180        if initial is None:
Back to Top