aboutsummaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-03 18:09:41 +0100
committerAlban Gruin2017-11-03 18:09:41 +0100
commit959bbaa5170aea4a9600d774280d44fc5107fdae (patch)
treeaba0b535096b0ae6fa75ed243fb5374df8ed73fb /feeds.py
parent1edd7f6b2431095b27fd98205bb2ce5f462183e9 (diff)
parent5082e2aa0083a1c78cd39e86cb141786c2ab6efe (diff)
Merge branch 'fusion/alban'
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/feeds.py b/feeds.py
index c2c5b14..66be12e 100644
--- a/feeds.py
+++ b/feeds.py
@@ -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()