Ticket #10659: widgets.diff

File widgets.diff, 591 bytes (added by amaslov, 9 years ago)
  • django/forms/widgets.py

     
    443443    def value_from_datadict(self, data, files, name):
    444444        if isinstance(data, (MultiValueDict, MergeDict)):
    445445            return data.getlist(name)
     446        # Paste's paste.util.MultiDict or paste.util.UnicodeMultiDict
     447        if hasattr(data, "getall"):
     448            return data.getall(name)
    446449        return data.get(name, None)
    447450
    448451    def _has_changed(self, initial, data):
Back to Top