Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 634 Bytes

filter_group_title_firstchar.rst

File metadata and controls

26 lines (21 loc) · 634 Bytes

django

filter-group_firstchar

Similar to filter-group_firstchar, but always uses the title column from the rsc table.

This is merely a shortcut, simplifying the template syntax:

<table>
{% for cols in m.search[...]|group_title_firstchar:4 %}
   <td>
      {% for group in cols %}
      <b>{{ group.first }}</b>
      {% for id in group.result %}
      <li>
          {{ id.title }}
      </li>
      {% endfor %}
   {% endfor %}
   </td>
{% endfor %}
</table>

Groups alphabetically on title, in four columns.