From 5a6f3c26eeaffa9225a570bd20130595b8ad8eda Mon Sep 17 00:00:00 2001 From: Daniel Vaca Araujo Date: Tue, 23 Oct 2012 21:23:47 +0300 Subject: [PATCH] A little error in a snipped code in docs --- api-guide/serializers.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-guide/serializers.html b/api-guide/serializers.html index 3ac1a909c..0380f7285 100644 --- a/api-guide/serializers.html +++ b/api-guide/serializers.html @@ -314,7 +314,7 @@ The ModelSerializer class lets you automatically create a Serialize def get_related_field(self, model_field, to_many=False): queryset = model_field.rel.to._default_manager if to_many: - return return serializers.ManyRelatedField(queryset=queryset) + return serializers.ManyRelatedField(queryset=queryset) return serializers.RelatedField(queryset=queryset) def get_field(self, model_field):