fix URLS error and support download file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user