diff options
author | Alban Gruin | 2017-09-07 23:12:57 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-07 23:12:57 +0200 |
commit | 5767fe2b49858dd8174193ffa8c2e8b3fda1fc6c (patch) | |
tree | 5176298f82739e146621f8661bdf4a01f9062b0e /templates/index.html | |
parent | daa35602eeee6b15cea2b4e92a0556de2a1b4905 (diff) |
Utilisation du modèle Year où nécessaire
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html index 09bb0f6..e33f92a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,4 +1,4 @@ -{% load dt_week %}<!DOCTYPE html> +<!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8" /> @@ -63,7 +63,7 @@ li.course { <h3>Choisissez votre année</h3> <ul> {% for year in years %} - <li><a href="{% url "mentions" year.year %}">{{ year.year }}</a> <small>({{ year.count }})</small></li> + <li><a href="{% url "mentions" year.slug %}">{{ year }}</a></li> {% empty %} <p><em>Aucun emploi du temps à afficher</em></p> {% endfor %} |