diff options
author | Alban Gruin | 2017-10-05 09:08:40 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-05 09:08:40 +0200 |
commit | cede815e9314290227f18156b93f8020041381d6 (patch) | |
tree | 504a0baa297520dc35f4198359cfaef95c3785e4 | |
parent | a61f5a3f507395c2aa0cab09f14f4308159935f6 (diff) |
Support des catégories iCalendar
-rw-r--r-- | feeds.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |