This commit is contained in:
cuom1999 2022-03-31 20:33:37 -05:00
parent 329a5293dd
commit ce77242008
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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