Original exception text was: 'QuerySet' object has no attribute 'name'.

student = Student.objects.filter(pk=pk)改为student = Student.objects.get(pk=pk)

posted @ 2022-09-19 19:44  张伟豪zhangweihao  阅读(91)  评论(0编辑  收藏  举报