whoops, patch the RSS/Atom feeds to work with the refactored handling of entry kinds
This commit is contained in:
parent
4d974a5364
commit
30c4c8ec8f
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue