fix URLS error and support download file

This commit is contained in:
2025-09-23 14:45:27 +08:00
parent e51154bb29
commit 7a4045048e
7 changed files with 76 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ class CrawledContentAdmin(admin.ModelAdmin):
def preview_content(self, obj):
"""预览内容"""
if obj.is_local_saved:
url = reverse('admin:crawled_content_preview', args=[obj.id])
url = reverse('preview_crawled_content', args=[obj.id])
return format_html(
'<a href="{}" target="_blank" class="button">预览文章</a>',
url