title: Django ORM Select Column From Two Model or More
body: <p>I want select column with django orm from two model or more.</p>
  <pre><code>SELECT nim, k.kode, s.nama, sks, nilai, th_ajaran FROM mahasiswa_khs k, mata_kuliah_si s WHERE k.kode = s.kode AND nim = %s
  </code></pre>
  <p>This is my code</p>
  <pre><code>khs = Khs.objects.filter(nim=nim).values_list('kode').union(SI.objects.all().values_list('kode'))
  </code></pre>
  <p>But, went I call in template it's didn't show</p>
  <p>It's my template :</p>
  <pre><code>{% for khs in khs %}
                          &lt;tr&gt;
                            &lt;td&gt;{{forloop.counter}}&lt;/td&gt;
                            &lt;td&gt;{{khs.kode}}&lt;/td&gt;
                            &lt;td&gt;{{khs.nama}}&lt;/td&gt;
                            &lt;td&gt;{{khs.sks}}&lt;/td&gt;
                            &lt;td class=&quot;vertical-align-mid&quot;&gt;{{khs.nilai}}&lt;/td&gt;
                            &lt;th&gt;{{khs.th_ajaran}}&lt;/th&gt;
                          &lt;/tr&gt;
                          {% endfor %}
  </code></pre>
  <p>And the view :</p>
  <pre><code>khs = Khs.objects.filter(nim=nim).union(SI.objects.all().values_list('kode'))
  context ={
          'khs' : khs,
      }
      return render(request, 'mahasiswa/mahasiswa.html',context)
  </code></pre>