diff options
| author | Tom Christie | 2015-01-21 13:03:37 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-01-21 13:03:37 +0000 |
| commit | da6ef3d0b0f3a8e688524bbd446d4350a74fd05a (patch) | |
| tree | dfbd8a9207506344f8154104954a59f945fa489c /rest_framework/utils/serializer_helpers.py | |
| parent | fdeef89ba79e617ea22dae68a0b42b3f60d67a4d (diff) | |
| download | django-rest-framework-da6ef3d0b0f3a8e688524bbd446d4350a74fd05a.tar.bz2 | |
Allow missing fields option for inherited serializers. Closes #2388.
Diffstat (limited to 'rest_framework/utils/serializer_helpers.py')
| -rw-r--r-- | rest_framework/utils/serializer_helpers.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rest_framework/utils/serializer_helpers.py b/rest_framework/utils/serializer_helpers.py index f9960603..ab057862 100644 --- a/rest_framework/utils/serializer_helpers.py +++ b/rest_framework/utils/serializer_helpers.py @@ -105,3 +105,6 @@ class BindingDict(collections.MutableMapping): def __len__(self): return len(self.fields) + + def __repr__(self): + return dict.__repr__(self.fields) |
