diff --git a/docs/serialization.txt b/docs/serialization.txt index 8af4da26a8..3216cb061e 100644 --- a/docs/serialization.txt +++ b/docs/serialization.txt @@ -109,7 +109,7 @@ serializer, you must pass ``ensure_ascii=False`` as a parameter to the For example:: - json_serializer = serializers.get_serializer("json") + json_serializer = serializers.get_serializer("json")() json_serializer.serialize(queryset, ensure_ascii=False, stream=response) Writing custom serializers