mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Merge pull request #3034 from m-vellinga/master
Use get_queryset() for RelatedField choices property
This commit is contained in:
commit
47765bc429
|
@ -110,7 +110,7 @@ class RelatedField(Field):
|
|||
six.text_type(self.to_representation(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