Django Admin TabularInline에 링크 추가
class TestedBoxInline(admin.TabularInline) : model = Tested_Data_Box extra = 0 fields = ['id','getBoxLink','char','coords_1','coords_2','coords_3','coords_4','page'] readonly_fields = ['getBoxLink','char','coords_1','coords_2','coords_3','coords_4','page'] def getBoxLink(self, obj) : return format_html("%s" %(reverse('admin:%s_trained_box_change' %obj._meta.app_label,args=(obj.box_id,)), obj.box..
2021.03.03