summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParth Buch2012-07-27 18:01:18 +0530
committerParth Buch2012-07-27 18:01:18 +0530
commit37334ecc9ed2bfa9a9fb0112fb1a58c08e50e8eb (patch)
treeeeef342ef15829b91d1e5deb7f85004607c801a7
parent6452bbe21cdc0624b5d9b2ddfeef5efa6d396546 (diff)
downloadstproject-37334ecc9ed2bfa9a9fb0112fb1a58c08e50e8eb.tar.gz
stproject-37334ecc9ed2bfa9a9fb0112fb1a58c08e50e8eb.tar.bz2
stproject-37334ecc9ed2bfa9a9fb0112fb1a58c08e50e8eb.zip
Modified views.py
Three latest module are sent to the homepage
-rw-r--r--stapp/video/views.py2
1 files changed, 1 insertions, 1 deletions
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()