diff options
author | Parth Buch | 2012-07-27 18:01:18 +0530 |
---|---|---|
committer | Parth Buch | 2012-07-27 18:01:18 +0530 |
commit | 37334ecc9ed2bfa9a9fb0112fb1a58c08e50e8eb (patch) | |
tree | eeef342ef15829b91d1e5deb7f85004607c801a7 /stapp/video/views.py | |
parent | 6452bbe21cdc0624b5d9b2ddfeef5efa6d396546 (diff) | |
download | stproject-37334ecc9ed2bfa9a9fb0112fb1a58c08e50e8eb.tar.gz stproject-37334ecc9ed2bfa9a9fb0112fb1a58c08e50e8eb.tar.bz2 stproject-37334ecc9ed2bfa9a9fb0112fb1a58c08e50e8eb.zip |
Modified views.py
Three latest module are sent to the homepage
Diffstat (limited to 'stapp/video/views.py')
-rw-r--r-- | stapp/video/views.py | 2 |
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() |