Commit 826b5a88 by Tom Christie

Relations in 'read_only_fields' should not include a queryset kwarg

parent b5a4216a
......@@ -640,7 +640,7 @@ class ModelSerializer(Serializer):
for attr in [
'required', 'default', 'allow_blank', 'allow_null',
'min_length', 'max_length', 'min_value', 'max_value',
'validators'
'validators', 'queryset'
]:
kwargs.pop(attr, None)
kwargs.update(extras)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment