aboutsummaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/feeds.py b/feeds.py
index 8341f06..dde051b 100644
--- a/feeds.py
+++ b/feeds.py
@@ -60,7 +60,7 @@ class IcalFeed(Feed):
try:
timetable = Timetable.objects.get(year__slug=year_slug,
slug=timetable_slug)
- group = Group.objects.get(timetable=timetable.source,
+ group = Group.objects.get(source=timetable.source,
slug=group_slug)
except:
raise ObjectDoesNotExist
@@ -106,7 +106,7 @@ class RSSFeed(Feed):
try:
self.timetable = Timetable.objects.get(year__slug=year_slug,
slug=timetable_slug)
- self.group = Group.objects.get(timetable=self.timetable.source,
+ self.group = Group.objects.get(source=self.timetable.source,
slug=group_slug)
except:
raise ObjectDoesNotExist