Commit d03d0f19 authored by Julien Palard's avatar Julien Palard
Browse files

FIX: Links in stats/

parent 93155b4c
......@@ -11,7 +11,7 @@
</td>
{% for answer in answers %}
<td>
<a href="{% url "exercise" answer.exercice_id %}">
<a href="{% url "exercise" answer.slug %}">
{% if answer.is_tried %}
{% if answer.is_valid %}
<span class="good"></span>
......
......@@ -148,7 +148,7 @@ class StatsDetailView(UserPassesTestMixin, DetailView):
{
"is_tried": exercice.nb_anwser > 0,
"is_valid": exercice.nb_valid_anwser > 0,
"exercice_id": exercice.id,
"slug": exercice.slug,
}
for exercice in Exercise.objects.annotate(
nb_anwser=Count(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment