在删除订单时,'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

已解决

0
0

放羊ing

提问者

2020-07-31

//img.mukewang.com/szimg/5f237124093d9ff909550444.jpg//img1.sycdn.imooc.com/szimg/5f23714909fb74eb13900882.jpg如图。

0
3
bobby
回复
放羊ing
加你了
2020-08-05
共3条回复

放羊ing

提问者

2020-07-28

创建订单,查看订单详情都行,就删除报错

0
2
放羊ing
回复
bobby
老师,已经放到回答上面了
2020-07-31
共2条回复

Python前后端分离开发Vue+Django REST framework实战

Django REST framework课程视频,RESTFul API前后端分离开发

2873 学习 · 2457 问题

查看课程