From cede815e9314290227f18156b93f8020041381d6 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Thu, 5 Oct 2017 09:08:40 +0200 Subject: Support des catégories iCalendar --- feeds.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/feeds.py b/feeds.py index 564b285..c2c5b14 100644 --- a/feeds.py +++ b/feeds.py @@ -29,7 +29,7 @@ from .templatetags.rooms import format_rooms from .utils import get_current_or_next_week, get_week, group_courses ICAL_NAMES = ["uid", "summary", "description", "location", - "start", "dtstart", "dtend", "dtstamp"] + "start", "dtstart", "dtend", "dtstamp", "categories"] class IcalFeedGenerator(SyndicationFeed): @@ -66,6 +66,9 @@ class IcalFeed(Feed): else: return group + def item_categories(self, item): + return (item.type,) + def item_description(self, item): return item.notes -- cgit v1.2.1