Ticket #14407: patch.diff
File patch.diff, 616 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/widgets.py
diff -r a8a9a277716d django/contrib/admin/widgets.py
a b 172 172 return '' 173 173 174 174 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) 178 176 if value: 179 return [value] 180 return None 177 return value.split(',') 181 178 182 179 def _has_changed(self, initial, data): 183 180 if initial is None: