TelegramAppUserConfig.objects.filter(user=user).update(json="hoge") 这应该只产生一个结果。但这不管用。Django: object has no attribute 'update' TelegramAppUserConfig.objects.filter(user=user).first().update(json="hoge")
TelegramAppUserConfig.objects.fi
但是我的一行代码(Line 65, in run_game, snakehead.update()')有一个叫做'snakehead' object has no attribute 'update'的错误self.crashed = False
screen.blit(self.image, self.rect)
当我尝试访问localhost:8000/course/u/update-item/:"AttributeError at /update_item/ 'WSGIRequest‘对象没有属性'data'注意:当我将request.data更改为request.body时,会收到另一条错误消息,即JSONDecodeError at /course/u/update</e