Ticket #6401: widgets.diff

File widgets.diff, 587 bytes (added by STemplar, 17 years ago)
  • django/newforms/widgets.py

     
    387387        if isinstance(data, MultiValueDict):
    388388            return data.getlist(name)
    389389        return data.get(name, None)
    390 
     390
     391    def is_empty(self, value):
     392        if value in (None, '', []):
     393            return True
     394        return False
     395
    391396class RadioInput(StrAndUnicode):
    392397    """
    393398    An object used by RadioFieldRenderer that represents a single
Back to Top