Django Admin list_display에 custom link 추가
list_display = ['id','linkImage',] def linkImage(self, obj) : url = reverse('admin:ocr_trained_image_change', args=[obj.image]) return format_html("{}",url,obj.image) linkImage.short_description = 'Image' list_display = ['id','popup_gantt','manager'] def popup_gantt(self, obj) : return format_html("{}", obj.id,obj.name)
2021.02.11