aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
diff options
context:
space:
mode:
authorMarty Alchin2014-10-15 17:54:58 -0700
committerMarty Alchin2014-10-15 17:54:58 -0700
commit4248a6c499cf31d2e38199f05a42e7a131dc014e (patch)
tree7b53a5be779327803ddaf00c95bcc03d68a98d5c /rest_framework/serializers.py
parentb4f3379c7002f0c80a26605fdd9c69d7cef2f16f (diff)
downloaddjango-rest-framework-4248a6c499cf31d2e38199f05a42e7a131dc014e.tar.bz2
Add a keys method to BindingDict
Diffstat (limited to 'rest_framework/serializers.py')
-rw-r--r--rest_framework/serializers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index 534be6f9..2066fcf7 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -230,6 +230,9 @@ class BindingDict(object):
def items(self):
return self.fields.items()
+ def keys(self):
+ return self.fields.keys()
+
def values(self):
return self.fields.values()