<!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8" /> <title>celcatsanitizer</title> </head> <body> <h1>celcatsanitizer</h1> {% for timetable in timetables %} <h3>{{ timetable.name }}</h3> <ul> {% for group in groups %} {% if group.timetable.id == timetable.id %} <li><a href="{% url "timetable" timetable.slug group.slug %}">{{ group.name }}</a></li> {% endif %} {% endfor %} </ul> {% endfor %} </body> </html>