title: Return multiple models from a view in Django
body: <p>I am learning Django,</p>
  
  <p>I am having a problem with fetching data from 2 different models with the same view. </p>
  
  <p>My models are as follow : </p>
  
  <pre><code>@python_2_unicode_compatible
  class Destination(models.Model):
      roadtripname = models.CharField(max_length=100)
      def __str__(self):
          self.roadtripname
  
  @python_2_unicode_compatible        
  class Trajectories(models.Model):
      roadtripname = models.ForeignKey(Destination, on_delete=models.CASCADE)
      place_text = models.CharField(max_length=100)
      def __str__(self):
         return self.place_text
  </code></pre>
  
  <p>my view class is this : </p>
  
  <pre><code>class IndexView(generic.ListView):
      template_name = 'roadtrip/index.html'
      context_object_name = 'roadtrip_list'
  
      def get_queryset(self):
          return Destination.objects.filter()
  </code></pre>
  
  <p>my html is : </p>
  
  <pre><code>{% for roadtrip in roadtrip_list %}
      {{ roadtrip.roadtripname }} 
  {% endfor %}
  </code></pre>
  
  <p>I have tried to return my 2 models like this :</p>
  
  <pre><code>return Destination.objects.filter(), Trajectories.objects.filter()
  </code></pre>
  
  <p>and then in html doing </p>
  
  <pre><code>{% for roadtrip in roadtrip_list[0] %}
      {{ roadtrip.roadtripname }} 
  {% endfor %}
  </code></pre>
  
  <p>but this does not work, I do not know how to be able to access both the Destination and Trajectories models. Could anyone point me in the right direction?</p>