diff options
| author | Carlton Gibson | 2014-02-11 14:44:56 +0100 |
|---|---|---|
| committer | Carlton Gibson | 2014-02-11 14:44:56 +0100 |
| commit | 95670933d7954a99e02f0e19f285d8740ab5e449 (patch) | |
| tree | dcfabbba75582805db3961155fd1832bd41b953d /rest_framework/serializers.py | |
| parent | ac1ea5e65173357790cca2b2a839e3a7e33b1a40 (diff) | |
| download | django-rest-framework-95670933d7954a99e02f0e19f285d8740ab5e449.tar.bz2 | |
Test and quick fix for #1257
Diffstat (limited to 'rest_framework/serializers.py')
| -rw-r--r-- | rest_framework/serializers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index 38b5089a..10256d47 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -893,6 +893,7 @@ class ModelSerializer(Serializer): field_name = field.source or field_name if field_name in exclusions \ and not field.read_only \ + and field.required \ and not isinstance(field, Serializer): exclusions.remove(field_name) return exclusions |
