]> git.ozlabs.org Git - patchwork/blobdiff - templates/patchwork/patch-list.html
templates: Don't rely on bool(Page)
[patchwork] / templates / patchwork / patch-list.html
index 770f0051ea83e50f9d6f2494bc7da31972d0ab11..723c4a0d9a4f18c9d2cb36a0e19da968aa6258ff 100644 (file)
   </tr>
  </thead>
 
-{% if page %}
+{% if page.paginator.count %}
  <tbody>
  {% for patch in page.object_list %}
   <tr id="patch_row:{{patch.id}}" class="{% cycle 'odd' 'even' %}">