1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

use django_tables2

This commit is contained in:
Pierre-antoine Comby
2019-08-13 18:22:19 +02:00
parent a0c32890a9
commit f88ca61b34
3 changed files with 7 additions and 13 deletions

View File

@ -1,17 +1,8 @@
{% extends "base.html" %}
{% load render_table from django_tables2 %}
{% block content %}
<table class="table">
<tr>
<td>ID</td>
<td>name</td>
</tr>
{% for object in object_list %}
<tr>
<td>{{object.pk}}</td>
<td><a href="{{ object.get_absolute_url }}"> {{ object.name }}</a></td>
</tr>
{% endfor %}
</table>
{% render_table object_list %}
<a class="btn btn-primary" href="{% url 'member:club_create' %}">New Club</a>
{% endblock %}