diff options
author | Alban Gruin | 2017-01-25 14:25:04 +0100 |
---|---|---|
committer | Alban Gruin | 2017-01-25 14:25:04 +0100 |
commit | a4a3aa91a9eacf0f67442d79d8aaee01b7a1256b (patch) | |
tree | 7926f34aba06cebf98d612dfc1273f8073d3b35f /templates/subscribe.html | |
parent | a98fcce79627994f397d457677082b9c5e1b6192 (diff) |
Suppression du slug de l'emploi du temps dans les URLs ainsi que sa récupération manuelle inutile car
déjà référencée par le groupe
Diffstat (limited to 'templates/subscribe.html')
-rw-r--r-- | templates/subscribe.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/subscribe.html b/templates/subscribe.html index b1aa71b..2cd6d87 100644 --- a/templates/subscribe.html +++ b/templates/subscribe.html @@ -1,10 +1,10 @@ {% extends "index.html" %} -{% block title %}S'abonner à {{ timetable.name }} – {{ group.name }}{% endblock %} +{% block title %}S'abonner à {{ group.timetable.name }} – {{ group.name }}{% endblock %} {% block body %} - <h2>S'abonner à {{ timetable.name }} – {{ group.name }}</h2> - <form action="{% url "subscribe" timetable.slug year week group.slug %}" method="post"> + <h2>S'abonner à {{ group.timetable.name }} – {{ group.name }}</h2> + <form action="{% url "subscribe" group.slug year week %}" method="post"> {% csrf_token %} {{ form }} <input type="submit" value="S'abonner" /> |