This commit is contained in:
Warren Jin 2015-01-27 22:19:19 -05:00
parent 09aff6daeb
commit 25fee8e07b
2 changed files with 5 additions and 3 deletions

View File

@ -1295,7 +1295,7 @@ class RecursiveField(Field):
def __init__(self, **kwargs):
field_kwargs = dict(
(key, value)
(key, kwargs[key])
for key in kwargs
if key in inspect.getargspec(Field.__init__)
)
@ -1329,6 +1329,7 @@ class RecursiveField(Field):
else:
real_dict[name] = value
class SerializerMethodField(Field):
"""
A read-only field that get its representation from calling a method on the

View File

@ -358,6 +358,7 @@ class TestRecursiveField:
assert serializer.validated_data == value, \
'deserialized data does not match input'
# Tests for field input and output values.
# ----------------------------------------