After adding custom columns in list_display, the background page display the columns, but the values of the columns is null, why is it happen?

前端 未结 0 942
旧巷少年郎
旧巷少年郎 2020-12-24 11:15

the coding of adminx.py is below:

class ProdAdmin(object):
    list_display = [\'id\',\'name\',\'cats\',\'aa\']
    def aa(self, obj):
        print("Thi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题