diff options
| -rw-r--r-- | frontend/views.py | 5 |
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', |
