aboutsummaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
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()