Serializing a list of objects with django-rest-framework

You can simply add many=True for serialising list.

comments = [Comment(email='[email protected]', content='foo bar'),
            Comment(email='[email protected]', content='foo bar 1'),
            Comment(email='[email protected]', content='foo bar 2')]
serializer = CommentSerializer(comments, many=True)
serializer.data