From 4248a6c499cf31d2e38199f05a42e7a131dc014e Mon Sep 17 00:00:00 2001 From: Marty Alchin Date: Wed, 15 Oct 2014 17:54:58 -0700 Subject: [PATCH] Add a keys method to BindingDict --- rest_framework/serializers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index 534be6f90..2066fcf70 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()