diff options
author | Alban Gruin | 2017-11-27 16:27:50 +0100 |
---|---|---|
committer | Alban Gruin | 2017-11-27 16:27:50 +0100 |
commit | 5d4d7530e1aba199c2604b311b17bef253f0a008 (patch) | |
tree | f7be9cd05d3d98d6b50095815464735f4f0b46a9 /feeds.py | |
parent | d0c69d3095d14f5509190d6b637cc0c018e53a19 (diff) |
Remplacement des références aux champs timetable vers source
Diffstat (limited to 'feeds.py')
-rw-r--r-- | feeds.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |