diff --git a/comments/admin.py b/comments/admin.py index 11ea07b06..6408f5023 100644 --- a/comments/admin.py +++ b/comments/admin.py @@ -28,7 +28,7 @@ class CommentAdmin(admin.ModelAdmin): fieldsets = ((None, {'fields': ('user', 'sound', 'comment')}),) raw_id_fields = ('user', 'parent', 'sound') - list_display = ('user', 'created', 'get_comment_summary', 'sound') + list_display = ('user', 'created', 'get_comment_summary', 'contains_hyperlink', 'sound') list_select_related = ('user', 'sound') list_filter = ('contains_hyperlink',) search_fields = ('comment', '=user__username', '=sound__id') @@ -36,7 +36,7 @@ class CommentAdmin(admin.ModelAdmin): @admin.display(description='Comment') def get_comment_summary(self, obj): - max_len = 80 + max_len = 160 return f"{obj.comment[:max_len]}{'...' if len(obj.comment) > max_len else ''}" def has_add_permission(self, request):