diff options
author | Parth Buch | 2012-07-26 13:42:16 +0530 |
---|---|---|
committer | Parth Buch | 2012-07-26 13:42:16 +0530 |
commit | a2e10a540f37507a80228be999550cb1ae6db696 (patch) | |
tree | 2cdb68830c9951e8f67805d6a11233c3a4903984 /stapp/video/views.py | |
parent | fb25a59dd7e675fd785dcd2626e5521489ffbd7f (diff) | |
download | stproject-a2e10a540f37507a80228be999550cb1ae6db696.tar.gz stproject-a2e10a540f37507a80228be999550cb1ae6db696.tar.bz2 stproject-a2e10a540f37507a80228be999550cb1ae6db696.zip |
Revert "random video id generation"
This reverts commit fb25a59dd7e675fd785dcd2626e5521489ffbd7f.
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 54d3f54..d517c74 100644 --- a/stapp/video/views.py +++ b/stapp/video/views.py @@ -11,7 +11,7 @@ def show(request): #Get the latest video to display on the front page latest_video = Video.objects.latest('created') - return HttpResponse(latest_video.mykey) + #Get last three modified modules latest_modules = Module.objects.order_by('-modified')[0:3] all_modules = Module.objects.order_by('modified') |