SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 7f46ec06 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

try to optimize latest pub rss feed

parent 62669ded
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,13 @@ class LatestPublicationsFeedRSS(Feed):
link = "/journals/"
def get_object(self, request, specialty=None):
qs = Publication.objects.published()
qs = Publication.objects.published().prefetch_related(
"specialties",
"in_issue",
"in_issue__in_volume",
"in_issue__in_volume__in_journal",
"in_journal",
)
if specialty:
qs = qs.filter(specialties=specialty)
self.specialty = specialty
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment