Projet

Général

Profil

0001-django-tables2-make-it-compatible-with-dj-tables2-1..patch

Benjamin Dauvergne, 03 avril 2018 13:08

Télécharger (1,1 ko)

Voir les différences:

Subject: [PATCH] django-tables2: make it compatible with dj-tables2>=1.21
 (fixes #22946)

Since version 1.21 django-tables2 does not pass the surrounding context
in the table template anymore, it's only available through table.context.
 fargo/templates/fargo/table.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fargo/templates/fargo/table.html
36 36
      {% endwith %}
37 37
    <td class="action-column" rowspan={{ row.record.description|yesno:"2,1" }}>
38 38
      {% block action-column %}
39
      {% if include_edit_link %}
39
      {% if table.context.include_edit_link or include_edit_link %}<!-- dj11 compatibility -->
40 40
        <a class="icon-edit" rel="popup" href="{% url 'edit' pk=row.record.pk %}"></a>
41 41
      {% endif %}
42 42
      {% if row.record.deletable_by_user %}
43
-