Skip to content
Snippets Groups Projects
Commit f19240a4 authored by Ondrej Rehounek's avatar Ondrej Rehounek
Browse files

main: november updates vol. 4

parent 31861a4e
No related branches found
No related tags found
2 merge requests!646Release,!645Feature/main november updates
Pipeline #10397 passed
......@@ -197,7 +197,9 @@ class MainHomePage(
region__isnull=False
).order_by("-date")[:3]
articles_for_article_section = MainArticlePage.objects.order_by("-date")
articles_for_article_section = MainArticlePage.objects.filter(
article_type=ARTICLE_TYPES.PRESS_RELEASE
).order_by("-date")
context["article_main"] = (
articles_for_article_section[0] if articles_for_article_section else None
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment