mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Relations in 'read_only_fields' should not include a queryset kwarg
This commit is contained in:
parent
b5a4216aff
commit
826b5a8897
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user