diff options
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 4 | 
1 files changed, 0 insertions, 4 deletions
| diff --git a/rest_framework/fields.py b/rest_framework/fields.py index f86f6626..b371c7d0 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -110,7 +110,6 @@ class Field(object):      default_validators = []      default_empty_html = empty      initial = None -    coerce_blank_to_null = True      def __init__(self, read_only=False, write_only=False,                   required=None, default=empty, initial=empty, source=None, @@ -248,9 +247,6 @@ class Field(object):                  self.fail('required')              return self.get_default() -        if data == '' and self.coerce_blank_to_null: -            data = None -          if data is None:              if not self.allow_null:                  self.fail('null') | 
