Skip to content

Commit 309a11f

Browse files
committed
Prevent editing of comment score from admin panel
1 parent 029d199 commit 309a11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

judge/admin/comments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CommentAdmin(VersionAdmin):
2626
search_fields = ['author__user__username', 'page', 'body']
2727
actions = ['hide_comment', 'unhide_comment']
2828
list_filter = ['hidden']
29-
readonly_fields = ['time']
29+
readonly_fields = ['time', 'score']
3030
actions_on_top = True
3131
actions_on_bottom = True
3232
form = CommentForm

0 commit comments

Comments
 (0)