aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-10-01 11:22:29 +0200
committerAlban Gruin2017-10-01 11:22:29 +0200
commite3594050b78d3b28b5696e9a546163945d8073da (patch)
tree2584cee355fa5d53ae3f014eaeac9ba04ea6f9c0
parentbf7c0b026284d7abe0390912253f07a65fa991d7 (diff)
Revert "On affiche que les groupes qui commencent par le nom de l’emploi du temps"
This reverts commit bf7c0b026284d7abe0390912253f07a65fa991d7.
-rw-r--r--views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/views.py b/views.py
index 2d59c7c..14a4208 100644
--- a/views.py
+++ b/views.py
@@ -57,9 +57,7 @@ def group_list_common(request, timetable, groups):
def group_list(request, year_slug, timetable_slug):
timetable = get_object_or_404(Timetable, year__slug=year_slug, slug=timetable_slug)
- groups = Group.objects.get_relevant_groups(timetable=timetable, name__startswith=timetable) \
- .order_by("name")
-
+ groups = Group.objects.get_relevant_groups(timetable=timetable).order_by("name")
return group_list_common(request, timetable, groups)
def timetable(request, year_slug, timetable_slug, group_slug, year=None, week=None):