Code

Ticket #4051: empty_values.diff

File empty_values.diff, 387 bytes (added by mdnesvold, 5 years ago)
Line 
1Index: django/forms/fields.py
2===================================================================
3--- django/forms/fields.py      (revision 9524)
4+++ django/forms/fields.py      (working copy)
5@@ -44,7 +44,7 @@
6 )
7 
8 # These values, if given to to_python(), will trigger the self.required check.
9-EMPTY_VALUES = (None, '')
10+EMPTY_VALUES = (None, '', [], {}, (), set([]))
11 
12 
13 class Field(object):