Merge pull request #694 from auto-mat/votes

Set voted_by to read only in knowledge base admin
This commit is contained in:
Garret Wassermann 2019-01-26 21:19:00 -05:00 committed by GitHub
commit 17fef846e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,8 @@ class FollowUpAdmin(admin.ModelAdmin):
@admin.register(KBItem)
class KBItemAdmin(admin.ModelAdmin):
list_display = ('category', 'title', 'last_updated',)
readonly_fields = ('voted_by',)
list_display_links = ('title',)