remove unnesscery redirect and and new admin view size

This commit is contained in:
Parsa Nazer
2025-02-05 01:56:51 +03:30
parent 8700fde8a4
commit 1ca41acf96
4 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ class CommentAdmin(ModelAdmin, ImportExportModelAdmin):
}
}
def display_content(self, obj):
return obj.content[0:20] + '...'
return obj.content[0:35] + '...'
display_content.short_description = 'محتوای کامنت'
@admin.register(DollorModel)