如何在djagno管理面板中使模型属性可编辑

时间:2018-12-10 08:52:12

标签: 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'.

0 个答案:

没有答案