title: AttributeError when attempting to get a value for field on serializer
body: <p>Trying to get a <code>manytomany</code> relationship in django but I'm getting the following error - </p>
  
  <blockquote>
    <p>Got AttributeError when attempting to get a value for field <code>name</code> on serializer GenreSerializer.
    The serializer field might be named incorrectly and not match any attribute or key on the Movie instance.
    Original exception text was: 'Movie' object has no attribute 'name'.</p>
  </blockquote>
  
  <p>There is a similar answer here recommending setting <code>many=True</code>, but it doesn't work - 
  <a href="https://stackoverflow.com/questions/30562054/attribute-error-when-attempting-to-get-a-value-for-field">Attribute error when attempting to get a value for field</a></p>
  
  <p>models.py</p>
  
  <pre><code>class Genre(models.Model):
    name = models.CharField(max_length=255,unique=True)
  
    def __unicode__(self):
      return self.name
  
  class Movie(models.Model):
    mname = models.CharField(max_length=255)
    genres = models.ManyToManyField(Genre,related_name='movies')
  
    def __unicode__(self):
      return self.mname
  </code></pre>
  
  <p>serializers.py</p>
  
  <pre><code>class GenreSerializer(serializers.ModelSerializer):
    class Meta:
      model = Genre
      fields = ('name','id')
  
  class MovieSerializer(serializers.ModelSerializer):
    genres = GenreSerializer(many=True, read_only=True)    
  
    class Meta:
      model = Movie
      fields = ('id','genres','mname')
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>urlpatterns = [
  url(r'^genres/$', views.GenreList.as_view()),
  url(r'^genres/(?P&lt;pk&gt;[0-9]+)$', views.GenreDetail.as_view()),
  ]
  
  urlpatterns = format_suffix_patterns(urlpatterns)
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>class GenreList(generics.ListCreateAPIView):
    queryset = Genre.objects.all()
    serializer_class = GenreSerializer
  
  
  class GenreDetail(generics.RetrieveUpdateDestroyAPIView):
    serializer_class = GenreSerializer
  
    def get_queryset(self):
      genres = Genre.objects.get(pk=self.kwargs.get('pk', None))
      movies = Movie.objects.filter(genres=genres)
      return movies
  </code></pre>