在删除订单时,'bool' object is not callable
来源:7-7 vue和jwt接口调试
放羊ing
2020-07-27
TypeError at /orders/3/
‘bool’ object is not callable
Request Method: DELETE
Request URL: http://127.0.0.1:8000/orders/3/
Django Version: 2.2.14
Exception Type: TypeError
Exception Value:
‘bool’ object is not callable
Exception Location: F:\Python-Project\Mxshop02\venv\lib\site-packages\django\db\models\deletion.py in collect, line 224
Python Executable: F:\Python-Project\Mxshop02\venv\Scripts\python.exe
Python Version: 3.5.1
Python Path:
[‘F:\Python-Project\Mxshop02\extra_apps’,
‘F:\Python-Project\Mxshop02\apps’,
‘F:\Python-Project\Mxshop02’,
‘F:\Python-Project\Mxshop02’,
‘F:\Python-Project\Mxshop02’,
‘F:\Python-Project\Mxshop02\apps’,
‘F:\Python-Project\Mxshop02\extra_apps’,
‘G:\JetBrains\PyCharm 2019.3.3\plugins\python\helpers\pycharm_display’,
‘F:\Python-Project\Mxshop02\venv\Scripts\python35.zip’,
‘G:\MyProgram\Python35\DLLs’,
‘G:\MyProgram\Python35\lib’,
‘G:\MyProgram\Python35’,
‘F:\Python-Project\Mxshop02\venv’,
‘F:\Python-Project\Mxshop02\venv\lib\site-packages’,
‘F:\Python-Project\Mxshop02\venv\lib\site-packages\setuptools-40.8.0-py3.5.egg’,
‘F:\Python-Project\Mxshop02\venv\lib\site-packages\pip-19.0.3-py3.5.egg’,
'G:\JetBrains\PyCharm '
‘2019.3.3\plugins\python\helpers\pycharm_matplotlib_backend’]
Server time: Mon, 27 Jul 2020 02:59:25 +0000
在商城中以往的操作都可以进行,但是就无法创建,删除订单。可以在文档中创建订单,但是无法也是无法删除订单。请问老师这是怎么回事?
3回答
-
放羊ing
提问者
2020-08-03
已解决
00 -
放羊ing
提问者
2020-07-31
如图。
032020-08-05 -
放羊ing
提问者
2020-07-28
创建订单,查看订单详情都行,就删除报错
022020-07-31
Python前后端分离开发Vue+Django REST framework实战
2873 学习 · 2457 问题
相似问题