Tweak comment

This commit is contained in:
Tom Christie 2012-10-04 15:00:23 +01:00
parent eaebb397fa
commit aac6b6cf4e

View File

@ -353,7 +353,9 @@ class ModelSerializer(Serializer):
"""
Creates a default instance of a flat relational field.
"""
queryset = model_field.rel.to._default_manager # .using(db).complex_filter(self.rel.limit_choices_to)
# TODO: filter queryset using:
# .using(db).complex_filter(self.rel.limit_choices_to)
queryset = model_field.rel.to._default_manager
if isinstance(model_field, models.fields.related.ManyToManyField):
return ManyPrimaryKeyRelatedField(queryset=queryset)
return PrimaryKeyRelatedField(queryset=queryset)