Set voted_by to read only in knowledge base admin

This commit is contained in:
Timothy Hobbs 2019-01-22 18:29:32 +01:00
parent d7a8cb0de7
commit bd070f3bec
No known key found for this signature in database
GPG Key ID: 9CA9B3D779CEEDE7

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',)