title: How to display querysets in Django?
body: <p>I write a functiın and the final, function creates several model objects (same model different values). I listed these objects but I want to list just one time with the same <code>dashboard_id</code> value.
  I found something about that but I have an issue with displaying in the table.</p>
  <p>It is working but does not display the values. How can I solve it?</p>
  <p><strong>views.py</strong></p>
  <pre><code>def reports_list(request):
      report_list = Reports.objects.values_list('dashboard_id', flat=True).distinct()
      context = {
          'report_list': report_list,
      }
      return render(request, &quot;report_list.html&quot;, context)
  </code></pre>
  <p><strong>report_list.html</strong></p>
  <pre><code>&lt;table id=&quot;table_id&quot; class=&quot;display&quot;&gt;
     &lt;thead&gt;
        &lt;tr&gt;
           &lt;th&gt;Kullanıcı&lt;/th&gt;
           &lt;th&gt;Yüklenme Tarihi&lt;/th&gt;
           &lt;th&gt;Görüntüle&lt;/th&gt;
        &lt;/tr&gt;
     &lt;/thead&gt;
     &lt;tbody&gt;
        {%  for report in report_list %}
        &lt;tr&gt;
           &lt;td&gt;{{ report.user.first_name }} {{ report.user.last_name }}&lt;/td&gt;
           &lt;td&gt;{{ report.created_at }}&lt;/td&gt;
           &lt;td&gt;view&lt;/td&gt;
        &lt;/tr&gt;
        {% endfor %}
     &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  <p>to be clear:
  <a href="https://i.stack.imgur.com/AerkX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AerkX.png" alt="table" /></a></p>