django-admin中list_display字段实现超链接
django-admin中list_display字段实现超链接@admin.register(prototype)class ArticleAdmin(admin.ModelAdmin): list_display=('title', 'show_firm_url', 'modified_time') def show_firm_url(self, obj): return format_html("<a href='{url}'>{url}&l
原创
2021-06-29 17:01:34 ·
768 阅读 ·
0 评论