title: How to pass multiple objects as context to templates in class based generic view in django?
body: <p>I need to pass two different objects to my template,I tried to pass but it showing only one. </p>
  
  <p>I tried to pass it as dict but i got stuck, then i choose this method which also results in getting only the data from the first object.</p>
  
  <p>In template tag i used </p>
  
  <p>views.py</p>
  
  <pre><code>class ShowTable(ListView):
      model = TestUser
  
      def get_context_data(self, **kwargs):
          context = super().get_context_data(**kwargs)    
          context['vechile'] = Vechile.objects.all()
          return context
  </code></pre>
  
  <p>testuser_list.html</p>
  
  <pre><code> {% for comment in object_list %}
          &lt;tr&gt;
              &lt;td&gt;{{ comment.name }}&lt;/td&gt;
              &lt;td&gt;{{ comment.address }}&lt;/td&gt;
              &lt;td&gt;{{ comment.phone }}&lt;/td&gt;
              &lt;td&gt;&lt;a href="{% url 'myapp:edit-table' comment.id %}"&gt;edit&lt;/a&gt;&lt;/td&gt;
              &lt;td&gt;&lt;a href="{% url 'myapp:delete-table' comment.id %}"&gt;Delete&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
      {% endfor %}
  
   {% for comment in object_list %}
              &lt;tr&gt;
                  &lt;td&gt;{{ comment.name }}&lt;/td&gt;
                  &lt;td&gt;{{ comment.bike }}&lt;/td&gt;
                  &lt;td&gt;{{ comment.car }}&lt;/td&gt;
              &lt;/tr&gt;
          {% endfor %}
  </code></pre>
  
  <p>I need to display data from both the models(TestUser and Vechile), Now i'm getting data from TestUser model only.</p>