title: Get Reverse relations object in rest framework
body: <p>How do I get the object from the reverse relation in serializers.py?</p>
  
  <p>I have a model like this</p>
  
  <pre><code>class Post(models.Model):
       title = models.CharField(max_length=100)
       content = models.TextField()
  
       def __str__(self): 
          return self.title
  
  class Category(models.Model):
       post = models.ForeignKey(Post, related_name='category')   
       name = models.CharField(max_length=200)
       slug = models.SlugField(max_length=70, unique=False)
  
       def __str__(self): 
          return self.title
  </code></pre>
  
  <p>And from the <a href="http://www.django-rest-framework.org/api-guide/relations#reverse-relations" rel="nofollow">Django Rest Framework documentation</a>, I can access the category directly through the related name and this is my serializers.py</p>
  
  <pre><code>class PostSerializer(serializers.ModelSerializer): 
          class Meta:
          model = Post
          fields = ('title','content','category')
  </code></pre>
  
  <p>The problem is the the view only return the category post id:</p>
  
  <pre><code>HTTP 200 OK
  Vary: Accept
  Allow: GET, HEAD, OPTIONS
  Content-Type: application/json
  
  {
      "count": 1, 
      "next": null, 
      "previous": null, 
      "results": [
          {
              "title": "Post title 1", 
              "content": "test content..blah blah blah", 
              "category": [
                  1 
              ]
          }
     ]
  }
  </code></pre>
  
  <p>How can I get the category name and slug??</p>