whoops, patch the RSS/Atom feeds to work with the refactored handling of entry kinds

This commit is contained in:
Danielle McLean 2018-05-08 18:10:08 +10:00
parent 4d974a5364
commit 30c4c8ec8f
Signed by untrusted user: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -4,7 +4,7 @@ from django.urls import reverse
from django.utils.feedgenerator import Atom1Feed from django.utils.feedgenerator import Atom1Feed
from urllib.parse import urljoin from urllib.parse import urljoin
from lemoncurry.templatetags.markdown import markdown from lemoncurry.templatetags.markdown import markdown
from ..kinds import from_plural, on_home from ..kinds import on_home
from ..models import Entry from ..models import Entry
@ -37,7 +37,7 @@ class EntriesFeed(Feed):
class RssByKind(EntriesFeed): class RssByKind(EntriesFeed):
def get_object(self, request, kind): def get_object(self, request, kind):
return from_plural[kind] return kind
def title(self, kind): def title(self, kind):
return "{0} ~ {1}".format( return "{0} ~ {1}".format(