Changeset - 1704584f3436
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 6 years ago 2015-12-18 19:59:03
bkuhn@ebb.org
Allow up to 5 blog posts on the front page.

We have a lot of blog posts at the moment.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/frontpage.py
Show inline comments
...
 
@@ -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,
0 comments (0 inline, 0 general)