diff options
author | Parth Buch | 2012-07-20 19:34:53 +0530 |
---|---|---|
committer | Parth Buch | 2012-07-20 19:34:53 +0530 |
commit | 0a66a25e8fe16e96b3e805c10c53f8496a2341b3 (patch) | |
tree | b264585bbaa3abdc2cf1b70e323e2e1688ab1239 /stapp/video | |
parent | fa78132169b6f56f2c5b83461ef4f116b8ee4940 (diff) | |
download | stproject-0a66a25e8fe16e96b3e805c10c53f8496a2341b3.tar.gz stproject-0a66a25e8fe16e96b3e805c10c53f8496a2341b3.tar.bz2 stproject-0a66a25e8fe16e96b3e805c10c53f8496a2341b3.zip |
UI Changes, removed the 'well' class to get rid of padding problem
Diffstat (limited to 'stapp/video')
-rw-r--r-- | stapp/video/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stapp/video/views.py b/stapp/video/views.py index 3500f74..544c2b0 100644 --- a/stapp/video/views.py +++ b/stapp/video/views.py @@ -12,9 +12,9 @@ def show(request): latest_video = Video.objects.latest('created') #Get last three modified modules - latest_modules = Module.objects.order_by('-modified') + latest_modules = Module.objects.order_by('-modified')[0:3] + all_modules = Module.objects.order_by('modified') - - context = { 'modules' : latest_modules , 'play' : latest_video} + context = { 'latest_modules' : latest_modules , 'play' : latest_video, 'all_modules':all_modules} return render(request, 'video/home.html', context) |