Commit d29e7378 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg Committed by Thom Wiggers
Browse files

Fix order on education course years

parent 18748d8f
......@@ -29,7 +29,7 @@
</p>
{% else %}
<div class="accordion bordered">
{% for year, data in items %}
{% for year, data in items reversed %}
<div class="card mb-0">
<div class="card-header collapsed"
data-toggle="collapse"
......
......@@ -80,7 +80,8 @@ def course(request, id):
})
return render(request, 'education/course.html',
{'course': obj, 'items': items.items()})
{'course': obj, 'items': sorted(items.items(),
key=lambda x: x[0])})
@login_required
......
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