Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
RT, when creating model objects, prompt typeerror: save() missing 1 required position argument: ‘self’
Solution: you need to add ()
For example: from. Models import userinfo
usr = userinfo # error
usr = userinfo() # correct
PS: don’t forget to generate and migrate data tables after creating data
This article is shared in the blog “phyger” (cnblog).