diff options
| author | root <root@lalalizard.com> | 2012-12-27 05:11:06 -0500 |
|---|---|---|
| committer | root <root@lalalizard.com> | 2012-12-27 05:38:08 -0500 |
| commit | c1f3ace87311a3267d64c9e479e2e024f6263ec7 (patch) | |
| tree | daacfe7b57cdb6f1ad2d9fd8e068925411ba7144 | |
| parent | cd5579407b95a4dcc98ea6b67ab618b1120d56f7 (diff) | |
fix jams i like order
| -rw-r--r-- | frontend/views.py | 2 |
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) ] |
