当我尝试将属性添加到list_editable到Django admin.py文件中时,运行服务器时出错 .

<class 'test_project.admin.SalesAdmin'>: (admin.E100) The value of 'list_editable[2]' refers to 'amount', which is not an attribute of 'test_project.Sales'.