aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/utils
diff options
context:
space:
mode:
authorTom Christie2015-01-21 13:03:37 +0000
committerTom Christie2015-01-21 13:03:37 +0000
commitda6ef3d0b0f3a8e688524bbd446d4350a74fd05a (patch)
treedfbd8a9207506344f8154104954a59f945fa489c /rest_framework/utils
parentfdeef89ba79e617ea22dae68a0b42b3f60d67a4d (diff)
downloaddjango-rest-framework-da6ef3d0b0f3a8e688524bbd446d4350a74fd05a.tar.bz2
Allow missing fields option for inherited serializers. Closes #2388.
Diffstat (limited to 'rest_framework/utils')
-rw-r--r--rest_framework/utils/serializer_helpers.py3
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)