Allow up to 5 blog posts on the front page.

We have a lot of blog posts at the moment.
This commit is contained in:
Bradley M. Kuhn 2015-12-18 11:59:03 -08:00
parent 84cb9a2b85
commit 1704584f34

View file

@ -14,7 +14,7 @@ def view(request):
supporters_count = len(Supporter.objects.all().filter(display_until_date__gte=datetime.now()))
press_releases = PressRelease.objects.all().filter(pub_date__lte=datetime.now(), sites=2)[:5]
blog = BlogEntry.objects.all().filter(pub_date__lte=datetime.now())[:3]
blog = BlogEntry.objects.all().filter(pub_date__lte=datetime.now())[:5]
c = {
'press_releases': press_releases,