summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorroot <root@lalalizard.com>2013-01-02 13:37:41 -0500
committerroot <root@lalalizard.com>2013-01-02 13:37:41 -0500
commit1495529ccc48d2367ac1509e0958f0664e026f0e (patch)
treeae06bc0d7eec40c37059930cdb4cff70d91cbf72 /frontend
parentd852581e0ff9cfe6fb2164a8a1bf2aa6bd2dd005 (diff)
fix myhistory video order
Diffstat (limited to 'frontend')
-rw-r--r--frontend/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/views.py b/frontend/views.py
index 38ce906..8d15a79 100644
--- a/frontend/views.py
+++ b/frontend/views.py
@@ -150,8 +150,11 @@ def profile(request, username):
topz = SJContent.objects.filter(user__id=userprofile.user.id, content_type='video').annotate(likes=Count('sjlike')).order_by('-likes')[:50]
likez = SJContent.objects.filter(content_type='video', sjlike__user_id = userprofile.user.id ).order_by('-sjlike__datetime')[:50]
- vidz = SJContent.objects.filter(user__id=userprofile.user.id, content_type='video').order_by('-datetime')[:50]
+ tvidz = SJContent.objects.filter(user__id=userprofile.user.id, content_type='video').order_by('-datetime')[:50]
profile = [ userprofile.id, userprofile.nickname, userprofile.score, 3, 4, 5, userprofile.bio, json.loads(userprofile.settings_text) ]
+ vidz = []
+ for a in tvidz:
+ vidz.insert(0,a)
response = render_to_response(
'profile.html',