title: Filter items according to Foreign Key
body: <p>I have a model called <em>Destination</em>, each Destination has it's own certain Bucket Lists (<em>DestinationBucketlist</em> model) related to that Destination.
  What I want to do is in Bucket List Detail page show the list of related Bucket List items belonging for the same Destination. In other words I want to filter them according to the Destination.</p>
  
  <p>I tried multiple examples, but the problem is that either I get the list of all existing Bucket List items despite the Destination or it shows nothing...</p>
  
  <p>I think there should be something in my views.py but I can't figure out what I am missing. </p>
  
  <p>Here is  bit of my code</p>
  
  <p>models.py:</p>
  
  <pre><code>    class Destination(models.Model):
           destination = models.CharField(max_length=200)
           description = RichTextField()
           main_photo = models.ImageField(blank=True, null=True)
           tags = TaggableManager()
  
           def get_absolute_url(self):
               return reverse("destination_detail", kwargs={'pk': self.pk})
  
           def __str__(self):
               return self.destination
  
  
     class DestinationBucketList(models.Model):
          place_name = models.CharField(max_length=200)
          photo = models.ImageField(blank=True, null=True)
          description = RichTextUploadingField(blank=True, null=True)
          tips_desc = RichTextUploadingField(blank=True, null=True)
          description2 = RichTextUploadingField(blank=True, null=True)
          destination = models.ForeignKey(Destination, related_name="destination_bucketlist", on_delete=models.CASCADE)
  </code></pre>
  
  <p>views.py:</p>
  
  <pre><code>class DestinationDetailView(DetailView):
      model = Destination
      template_name ='WSE_blog/destination_detail.html'
      context_object_name = 'destination'
  
      def get_context_data(self, **kwargs):
          context = super(DestinationDetailView, self).get_context_data(**kwargs)
          context['destination'] = self.object
          context['post'] = self.object
          context['destinations_list'] = DestinationList.objects.all()
          context['destinations_detail'] = DestinationDetail.objects.filter(destination=self.object)
          context['bucket_list'] = DestinationBucketList.objects.filter(destination=self.object)
          context['related_articles'] = self.object.tags.similar_objects()[:4]
          return context
  
  class BucketlistDetailView(DetailView):
      model = DestinationBucketList
      template_name ='WSE_blog/bucketlist_detail.html'
      context_object_name = 'bucketlist'
  
      def get_context_data(self, **kwargs):
          context = super(BucketlistDetailView, self).get_context_data(**kwargs)
          context['bucketlist'] = self.object
          context['destination'] = self.object
          context['post'] = self.object
          context['bucket_list'] = DestinationBucketList.objects.all().filter(destination=self.kwargs.get('pk')).exclude(id=self.object.id)
          return context
  </code></pre>
  
  <p>bucketlist_detail.html:</p>
  
  <pre><code>    &lt;div class="places-list"&gt;
        &lt;h2 class="read-more-test"&gt;Explore More:&lt;/h2&gt;
        &lt;hr class="style-one" id="places-list"&gt;
        {% for place in bucket_list %}
          {% if place.place_name %}
            &lt;div class="read-more-list"&gt;
              &lt;a href="{% url 'bucketlist_detail' place.id %}"  class="read-more-place"&gt;
                &lt;p id="read-more-place"&gt;&lt;span&gt;&lt;img src="{% static "location_checkmark.png" %}" alt="" id="wse-check-mark"&gt;&lt;/span&gt;{{ place.place_name }}&lt;/p&gt;
              &lt;/a&gt;
            &lt;/div&gt;
          {% endif %}
        {% endfor %}
      &lt;/div&gt;
  </code></pre>