roster.ics
1 |
BEGIN:VCALENDAR |
2 |
VERSION:2.0 |
3 |
PRODID:-//hacksw/handcal//NONSGML v1.0//EN |
4 |
{% for event in events %} |
5 |
BEGIN:VEVENT |
6 |
{# UID:uid1@example.com |
7 |
UID: {{ forloop.counter }} |
8 |
DTSTAMP:{{ event.begin_time|date:"Ymd\This" }}Z |
9 |
ORGANIZER:CN={{ event.docent }}:MAILTO:{{ event.docent.user_data.email }} |
10 |
DTSTART:{{ event.begin_time|date:"Ymd\This" }}Z |
11 |
DTEND:{{ event.end_time|date:"Ymd\This" }}Z |
12 |
SUMMARY:{{ event.subject }} |
13 |
LOCATION:{{ event.room }} |
14 |
END:VEVENT |
15 |
{% endfor %} |