From 1495529ccc48d2367ac1509e0958f0664e026f0e Mon Sep 17 00:00:00 2001 From: root Date: Wed, 2 Jan 2013 13:37:41 -0500 Subject: fix myhistory video order --- frontend/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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', -- cgit v1.2.3-70-g09d2