{% extends "modelview/object_list.html" %}

{% load i18n modelview_list %}

{% block objects %}
<table class="objects">
    <thead>
        <tr>
            <th>{% trans "date period"|capfirst %}</th>
            <th>{% trans "drudge"|capfirst %}</th>
            <th>{% trans "specification"|capfirst %}</th>
            <th>{% trans "status"|capfirst %}</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    {% for object in object_list %}
        <tr class="{% cycle 'odd' 'even' %}">
            <th>
                <a href="{{ object.get_absolute_url }}">
                    {{ object.date_from|date:"d.m.Y" }} - {{ object.date_until|date:"d.m.Y" }}
                </a>
            </th>
            {% for name, value in object|model_row:"drudge,specification,status" %}
                <td>{{ value }}</td>
            {% endfor %}
            <td>{{ object.admin_pdf_url|safe }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>
{% endblock %}

{% extends "modelview/object_list.html" %}

{% load i18n modelview_list %}

{% block objects %}
<table class="objects">
    <thead>
        <tr>
            <th>{% trans "date period"|capfirst %}</th>
            <th>{% trans "drudge"|capfirst %}</th>
            <th>{% trans "specification"|capfirst %}</th>
            <th>{% trans "created"|capfirst %}</th>
            <th>{% trans "status"|capfirst %}</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    {% for object in object_list %}
        <tr class="{% cycle 'odd' 'even' %}">
            <th>
                <a href="{{ object.get_absolute_url }}">
                    {{ object.date_from|date:"d.m.Y" }} - {{ object.date_until|date:"d.m.Y" }}
                </a>
            </th>
            <td>{{ object.drudge }}</td>
            <td title="{{ object.specification }}">{{ object.specification.code }}</td>
            <td>{{ object.created|date:"d.m.Y" }}</td>
            <td>{{ object.get_status_display }}</td>
            <td>{{ object.admin_pdf_url|safe }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>
{% endblock %}

Write out assignment list columns
Write out assignment list columns
