Use get_queryset() for RelatedField choices property instead of self.queryset.all()

This commit is contained in:
Marco Vellinga 2015-05-11 15:28:10 +02:00
parent 21cb808569
commit 478b1dbd06

View File

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