diff --git a/rest_framework/fields.py b/rest_framework/fields.py index cbc02e2c2..97593eeee 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -450,10 +450,10 @@ class Field: except (KeyError, AttributeError) as exc: if self.default is not empty: return self.get_default() - if self.allow_null: - return None if not self.required: raise SkipField() + if self.allow_null: + return None msg = ( 'Got {exc_type} when attempting to get a value for field ' '`{field}` on serializer `{serializer}`.\nThe serializer '