From 37334ecc9ed2bfa9a9fb0112fb1a58c08e50e8eb Mon Sep 17 00:00:00 2001 From: Parth Buch Date: Fri, 27 Jul 2012 18:01:18 +0530 Subject: Modified views.py Three latest module are sent to the homepage --- stapp/video/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stapp/video/views.py b/stapp/video/views.py index d517c74..458f3d9 100644 --- a/stapp/video/views.py +++ b/stapp/video/views.py @@ -13,7 +13,7 @@ def show(request): latest_video = Video.objects.latest('created') #Get last three modified modules - latest_modules = Module.objects.order_by('-modified')[0:3] + latest_modules = Module.objects.order_by('-modified')[0:4] all_modules = Module.objects.order_by('modified') tags = Tag.objects.all() -- cgit