运行django程序出错‘str’ object has no attribute '_meta'

报错原因是传入的是类对象,可你传进的参数是字符串,找到传参的位置改过来即可

猜你喜欢

转载自blog.csdn.net/qq_36045385/article/details/81387280