Include information on cats in the Atom and RSS feeds

This commit is contained in:
Danielle McLean 2017-12-04 22:19:03 +11:00
parent 9e71c3d35d
commit 458da087d0
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -31,6 +31,9 @@ class EntriesFeed(Feed):
def item_updatedate(self, entry): def item_updatedate(self, entry):
return entry.updated return entry.updated
def item_categories(self, entry):
return (cat.name for cat in entry.cats.all())
class RssByKind(EntriesFeed): class RssByKind(EntriesFeed):
def __init__(self, kind): def __init__(self, kind):