Fix to voting code, downvoted_by field should be readonly

This commit is contained in:
Timothy Hobbs 2020-01-08 22:30:12 +01:00
parent 05bd852799
commit c254336c57

View File

@ -72,7 +72,7 @@ class FollowUpAdmin(admin.ModelAdmin):
class KBItemAdmin(admin.ModelAdmin):
list_display = ('category', 'title', 'last_updated',)
inlines = [KBIAttachmentInline]
readonly_fields = ('voted_by',)
readonly_fields = ('voted_by', 'downvoted_by')
list_display_links = ('title',)