diff --git a/publichealth/home/models/models.py b/publichealth/home/models/models.py index 5ad3f7b..8741a98 100644 --- a/publichealth/home/models/models.py +++ b/publichealth/home/models/models.py @@ -212,7 +212,7 @@ class HomePage(Page): return articles[:4] @property - def newsfeed(self): + def blogentries(self): # Get list of latest news curlang = translation.get_language() if not curlang in ['de', 'fr']: curlang = 'de' # Default language @@ -227,7 +227,7 @@ class HomePage(Page): # Update template context context = super(HomePage, self).get_context(request) context['featured'] = self.featured - context['newsfeed'] = self.newsfeed + context['blogentries'] = self.blogentries return context parent_page_types = ['wagtailcore.Page'] diff --git a/publichealth/home/templates/news.html b/publichealth/home/templates/news.html index bdd951a..966e472 100644 --- a/publichealth/home/templates/news.html +++ b/publichealth/home/templates/news.html @@ -3,7 +3,7 @@
- {% for entry in newsfeed %} + {% for entry in blogentries %}
{% if entry.header_image %}