'QuerySet' object has no attribute '_meta'

对象列表没有'_meta'属性

单独的对象才有, 忘记加first了

edit_obj=Customer.objects.filter(pk=id).first()   # 记得加first()
发布了39 篇原创文章 · 获赞 6 · 访问量 2007

猜你喜欢

转载自blog.csdn.net/weixin_45493345/article/details/102851711
今日推荐