diff options
author | Alban Gruin | 2017-11-03 18:09:41 +0100 |
---|---|---|
committer | Alban Gruin | 2017-11-03 18:09:41 +0100 |
commit | 959bbaa5170aea4a9600d774280d44fc5107fdae (patch) | |
tree | aba0b535096b0ae6fa75ed243fb5374df8ed73fb /feeds.py | |
parent | 1edd7f6b2431095b27fd98205bb2ce5f462183e9 (diff) | |
parent | 5082e2aa0083a1c78cd39e86cb141786c2ab6efe (diff) |
Merge branch 'fusion/alban'
Diffstat (limited to 'feeds.py')
-rw-r--r-- | feeds.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -87,6 +87,11 @@ class IcalFeed(Feed): "location": format_rooms(item.rooms.all())} +class IcalOnlyOneFeed(IcalFeed): + def items(self, obj): + return Course.objects.filter(groups=obj).order_by("begin") + + class RSSFeed(Feed): def get_object(self, request, year_slug, timetable_slug, group_slug): year, week = get_current_or_next_week() |