Relations in 'read_only_fields' should not include a queryset kwarg

This commit is contained in:
Tom Christie 2014-10-10 15:34:00 +01:00
parent b5a4216aff
commit 826b5a8897

View File

@ -640,7 +640,7 @@ class ModelSerializer(Serializer):
for attr in [ for attr in [
'required', 'default', 'allow_blank', 'allow_null', 'required', 'default', 'allow_blank', 'allow_null',
'min_length', 'max_length', 'min_value', 'max_value', 'min_length', 'max_length', 'min_value', 'max_value',
'validators' 'validators', 'queryset'
]: ]:
kwargs.pop(attr, None) kwargs.pop(attr, None)
kwargs.update(extras) kwargs.update(extras)