title: Django api returning model ID instead of model's title
body: <p>Im new to django When I <strong>make a api call</strong> it shows <strong>model.id</strong> but I wanted <strong>model.title</strong><a href="https://i.stack.imgur.com/2PE0p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2PE0p.png" alt="enter image description here"></a></p>
  
  <p>As we can see that <strong>my title is 1</strong> but I wanted the <strong>title of the model</strong>not ID</p>
  
  <p>Model.py</p>
  
  <pre><code>class Post(models.Model):
      title=models.CharField(max_length=200)
      description=models.TextField(max_length=10000)
      pub_date=models.DateTimeField(auto_now_add=True)
  
  
      def __unicode__(self):
          return self.title
  
      def description_as_list(self):
          return self.description.split('\n')
  
  class Comment(models.Model):
      title=models.ForeignKey(Post)
      comments=models.CharField(max_length=200)
  
      def __unicode__(self):
          return '%s' % (self.title)
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def detail(request, id):
      posts = Post.objects.get(id=id)
      comments=posts.comment_set.all()
      forms=CommentForm
      if request.method == 'POST':
          form=CommentForm(request.POST)
          if form.is_valid():
              comment = form.save(commit=False)
              comment.title = posts
              print comment
              comment.save()
          else:
            print form.errors
      else:
          form = PostForm()
  
      return render(request, "detail_post.html", {'forms':forms,'posts': posts,'comments':comments})
  </code></pre>
  
  <p>serializer.py</p>
  
  <pre><code>class CommentSerializer(serializers.ModelSerializer):
      class Meta:
          model = Comment
          fields = ('title','comments')
  
  class PostSerializer(serializers.ModelSerializer):
      class Meta:
          model = Post
          fields = ('id','title','description','pub_date')
  </code></pre>
  
  <p>How can I achieve the title of the blog name instead of just ID</p>
  
  <p>Thanks in advance...</p>