code: def _format(self, posts):
          
          if posts.__class__ == Post:
              # format a single post
              return posts.dict()
          formated_posts = []
          for post in posts:
              formated_posts.append(post.dict())
          return formated_posts
docs: This method is called by get_content() method