Ticket #4051: empty_values.diff

File empty_values.diff, 387 bytes (added by mdnesvold, 16 years ago)
  • django/forms/fields.py

     
    4444)
    4545
    4646# These values, if given to to_python(), will trigger the self.required check.
    47 EMPTY_VALUES = (None, '')
     47EMPTY_VALUES = (None, '', [], {}, (), set([]))
    4848
    4949
    5050class Field(object):
Back to Top