aboutsummaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/feeds.py b/feeds.py
index 37d6f8d..aa68934 100644
--- a/feeds.py
+++ b/feeds.py
@@ -16,6 +16,7 @@
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.syndication.views import Feed
from django.db.models import Q
+from django.urls import reverse
from django.utils.feedgenerator import Atom1Feed, SyndicationFeed
from icalendar import Calendar, Event
@@ -87,5 +88,10 @@ class AtomFeed(Feed):
else:
return group, updates
+ def link(self, obj):
+ group = obj[0]
+ link = reverse("timetable", kwargs={"year_slug": group.timetable.year.slug, "timetable_slug": group.timetable.slug, "group_slug": group.slug})
+ return link
+
def items(self, obj):
- pass
+ return []