Merge pull request #3034 from m-vellinga/master

Use get_queryset() for RelatedField choices property
This commit is contained in:
Tom Christie 2015-06-25 16:41:43 +01:00
commit 47765bc429

View File

@ -110,7 +110,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()
]) ])