标签: django python-3.x django-models django-admin
当我尝试将属性添加到Django admin.py文件的list_editable中时,运行服务器时出现错误。
<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'.