From f30d386588ca73cfab69a58b69db427bc31056af Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Thu, 7 Sep 2017 12:41:54 +0200 Subject: Le icalendar ne prend en compte que les cours actifs --- feeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'feeds.py') diff --git a/feeds.py b/feeds.py index 72d7873..11fb429 100644 --- a/feeds.py +++ b/feeds.py @@ -52,7 +52,7 @@ class IcalFeed(Feed): def get_object(self, request, timetable_slug, group_slug): try: timetable = Timetable.objects.get(slug=timetable_slug) - group = Group.objects.get(timetable=timetable, slug=group_slug) + group = Group.objects.get(timetable=timetable, slug=group_slug, active=True) except: raise ObjectDoesNotExist else: -- cgit v1.2.1