File "C:/Webapp/Mypros/awesome-python3-webapp\orm.py", line 265, in save args = list(map(self.getValueOrDefault, self.fields)) TypeError: getValueOrDefault() missing 1 required positional argument: 'key'
args = list(map(self.getValueOrDefault, self.fields))
fields,没有问题。实例直接调用正常,放到u.save()用类方法调用就不行。神啊,救救我吧!
问题解决了。真是难为情,很傻的原因。菜鸟不懂,敲代码时误加了类方法定义。
Sign in to make a reply
故事在明天
File "C:/Webapp/Mypros/awesome-python3-webapp\orm.py", line 265, in save args = list(map(self.getValueOrDefault, self.fields)) TypeError: getValueOrDefault() missing 1 required positional argument: 'key'