Skip to content

Commit a66822d

Browse files
committed
Use get_absolute_url() to point to the document.
Only include public comments in the feed. - Legacy-Id: 822
1 parent b3b0c7d commit a66822d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ietf/idtracker/feeds.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ def title(self, obj):
1818
def link(self, obj):
1919
if obj is None:
2020
raise FeedDoesNotExist
21-
return "/idtracker/%s" % obj.filename
22-
# obj.get_absolute_url() ?
21+
return obj.get_absolute_url()
2322

2423
def description(self, obj):
2524
self.title(obj)
2625

2726
def items(self, obj):
28-
return DocumentComment.objects.filter(document=obj.id_document_tag).order_by("-date")[:15]
27+
return DocumentComment.objects.filter(document=obj.id_document_tag, public_flag=1).order_by("-date")[:15]
2928

3029
def item_pubdate(self, item):
3130
time = datetime.time(*[int(t) for t in item.time.split(":")])

0 commit comments

Comments
 (0)