title: Django Error: 'ManyToManyDescriptor' object has no attribute 'all'
body: <p>i am getting this error. i am trying to loop through posts to display the posts that are part of the collection. What should i change this to?</p>
  <p>relevant info:</p>
  <p>models.py</p>
  <pre><code>class Collection(models.Model):
      posts = models.ManyToManyField(Post, related_name='collection_posts', null=True, blank=True)
  </code></pre>
  <p>views.py</p>
  <pre><code>def collection_detail_view(request, pk):
      collection = Collection.objects.get(id=pk)
      posts = Collection.posts.all() #this is the error
  
      context = {
          'collection': collection,
          'posts': posts  
      }
  
      return render(request, 'collection_detail.html', context)
  </code></pre>