diff --git a/judge/admin/comments.py b/judge/admin/comments.py index be6780c..f71de4b 100644 --- a/judge/admin/comments.py +++ b/judge/admin/comments.py @@ -25,6 +25,7 @@ class CommentAdmin(VersionAdmin): ) list_display = ['author', 'linked_page', 'time'] search_fields = ['author__user__username', 'page', 'body'] + readonly_fields = ['score'] actions = ['hide_comment', 'unhide_comment'] list_filter = ['hidden'] actions_on_top = True diff --git a/judge/views/blog.py b/judge/views/blog.py index f29fdac..48595b9 100644 --- a/judge/views/blog.py +++ b/judge/views/blog.py @@ -68,7 +68,7 @@ class FeedView(ListView): context['top_rated'] = Profile.objects.filter(is_unlisted=False).order_by('-rating')[:10] context['top_scorer'] = Profile.objects.filter(is_unlisted=False).order_by('-performance_points')[:10] - print(context['top_rated']) + return context