diff options
| author | David Medina | 2013-05-29 12:47:43 +0200 | 
|---|---|---|
| committer | David Medina | 2013-05-29 12:55:42 +0200 | 
| commit | d11b55648ca657d7036a312cafe6c76db491d3cc (patch) | |
| tree | 5817db29fdb3e112042fae69c7a67a5366a27215 /rest_framework/serializers.py | |
| parent | 85fe7197bfecd80774f15db26833a44ba5f5d570 (diff) | |
| download | django-rest-framework-d11b55648ca657d7036a312cafe6c76db491d3cc.tar.bz2 | |
Bugfix: Fix run validation layer with invalid data
Diffstat (limited to 'rest_framework/serializers.py')
| -rw-r--r-- | rest_framework/serializers.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index 3e5c366e..e7b8fdc0 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -315,7 +315,8 @@ class BaseSerializer(WritableField):          self._errors = {}          if data is not None or files is not None:              attrs = self.restore_fields(data, files) -            attrs = self.perform_validation(attrs) +            if attrs is not None: +                attrs = self.perform_validation(attrs)          else:              self._errors['non_field_errors'] = ['No input provided'] | 
