Django “xxxxxx Object” display customization in admin action sidebar

前端 未结 9 1074
野的像风
野的像风 2020-12-02 10:07

I would like to change the default behavior of how the admin recent changes sidebar displays the name of \"objects\" added. Refer to the picture below:

9条回答
  •  盖世英雄少女心
    2020-12-02 11:04

    You need to define, which column that you want to display...

    for example:

    class POAdmin(admin.ModelAdmin):
        list_display = ('qty', 'cost', 'total')
    

提交回复
热议问题