aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'views.py')
-rw-r--r--views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/views.py b/views.py
index 2bf596b..97a1d28 100644
--- a/views.py
+++ b/views.py
@@ -31,7 +31,7 @@ def index(request):
def mention_list(request, year_slug):
year = get_object_or_404(Year, slug=year_slug)
- timetables = Timetable.objects.order_by("name").filter(year=year).select_related("year")
+ timetables = Timetable.objects.order_by("name").filter(year=year)
return render(request, "index.html", {"year": year, "elements": timetables})