在开发我的应用程序时我遇到了一个问题
\n\nAssertionError at /api/update/\n`child` is a required argument.\nRequest Method: GET\nRequest URL: http://45.56.80.77/api/update/?token=1234567&ifloorplan=2\nDjango Version: 3.0.6\nException Type: AssertionError\nException Value: \n`child` is a required argument.\nException Location: /root/Env/ifloorplan/lib/python3.8/site-packages/rest_framework/serializers.py in __init__, line 591\nPython Executable: /usr/local/bin/uwsgi\nPython Version: 3.8.2\nPython Path: \n[\'.\',\n \'\',\n \'/usr/lib/python38.zip\',\n \'/usr/lib/python3.8\',\n \'/usr/lib/python3.8/lib-dynload\',\n \'/root/Env/ifloorplan/lib/python3.8/site-packages\']\nServer time: Mon, 1 Jun 2020 07:18:31 +0000\nRun Code Online (Sandbox Code Playgroud)\n\n也就是说,我尝试在数据库中更新并创建此类记录
\n\n[\n {\n "id": 2,\n "level": [\n {\n "id": 2,\n "plan_level": {\n "img": null,\n "img_height": null,\n "img_width": null,\n "position_x": null,\n "position_y": null,\n "level": null\n },\n "images": [\n {\n "id": 2,\n "cam": …Run Code Online (Sandbox Code Playgroud)