django - 如何在 djagno 管理面板中使模型属性可编辑
问题描述
当我尝试将属性添加到 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'.
解决方案
推荐阅读
- azure - 主 VM 集重新启动时故障转移如何工作?
- google-maps - Ionic 3 Google 地图 - 地图不显示在 Android 上
- python-3.x - Matplotlib Annotation Error
- android - 从最近的应用程序中删除时不要杀死应用程序
- javascript - 电子商务项目语言和框架指南
- c# - 如果光标在位置
- javascript -
- python - 在openCV中使用鼠标动态绘制圆圈
- java - 无法使用 Connection denied 和 Gradle 错误构建和运行导入的项目
- javascript - restricting access to specific users in php error