aboutsummaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-07 12:41:54 +0200
committerAlban Gruin2017-09-07 12:41:54 +0200
commitf30d386588ca73cfab69a58b69db427bc31056af (patch)
tree7dd43889ac6d268b01e0f6cb0f3be6ee4ac28625 /feeds.py
parente1867b989a913612cf2c4c76e8cecd60f479b4c2 (diff)
Le icalendar ne prend en compte que les cours actifsdev/db
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py2
1 files changed, 1 insertions, 1 deletions
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: