summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@lalalizard.com>2012-12-27 05:11:06 -0500
committerroot <root@lalalizard.com>2012-12-27 05:38:08 -0500
commitc1f3ace87311a3267d64c9e479e2e024f6263ec7 (patch)
treedaacfe7b57cdb6f1ad2d9fd8e068925411ba7144
parentcd5579407b95a4dcc98ea6b67ab618b1120d56f7 (diff)
fix jams i like order
-rw-r--r--frontend/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/views.py b/frontend/views.py
index 763253e..38ce906 100644
--- a/frontend/views.py
+++ b/frontend/views.py
@@ -149,7 +149,7 @@ def profile(request, username):
thumbnail = get_thumbnail(userprofile)
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('-datetime')[: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]
profile = [ userprofile.id, userprofile.nickname, userprofile.score, 3, 4, 5, userprofile.bio, json.loads(userprofile.settings_text) ]