debug comment display content

This commit is contained in:
Parsa Nazer
2025-02-05 01:08:01 +03:30
parent c02c9e56dd
commit d4d06493fb
+1 -1
View File
@@ -172,7 +172,7 @@ class CommentAdmin(ModelAdmin, ImportExportModelAdmin):
}
}
def display_content(self, obj):
return obj.display_content[0:20] + '...'
return obj.content[0:20] + '...'
display_content.short_description = 'محتوای کامنت'
@admin.register(DollorModel)