title: Serializing a list of objects with django-rest-framework
body: <p>In <a href="http://www.django-rest-framework.org/api-guide/serializers/#listserializer/" rel="noreferrer">DRF</a>, I can serialize a native Python object like this:</p>
  
  <pre><code>class Comment(object):
      def __init__(self, email, content, created=None):
          self.email = email
          self.content = content
          self.created = created or datetime.now()
  
  class CommentSerializer(serializers.Serializer):
      email = serializers.EmailField()
      content = serializers.CharField(max_length=200)
      created = serializers.DateTimeField()
  
  comment = Comment(email='leila@example.com', content='foo bar')
  serializer = CommentSerializer(comment)
  serializer.data
  
  # --&gt; {'email': 'leila@example.com', 'content': 'foo bar', 'created': '2016-01-27T15:17:10.375877'}
  </code></pre>
  
  <p>Is it possible to do the same for a list of objects using <a href="http://www.django-rest-framework.org/api-guide/serializers/#listserializer" rel="noreferrer"><code>ListSerializer</code></a>?</p>