mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Use get_queryset() for RelatedField choices property instead of self.queryset.all()
This commit is contained in:
parent
21cb808569
commit
478b1dbd06
|
@ -109,7 +109,7 @@ class RelatedField(Field):
|
||||||
six.text_type(self.to_representation(item)),
|
six.text_type(self.to_representation(item)),
|
||||||
six.text_type(item)
|
six.text_type(item)
|
||||||
)
|
)
|
||||||
for item in self.queryset.all()
|
for item in self.get_queryset()
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user