TypeError: Direct assignment to the forward side of a many-to-many set is prohibited.(解决办法)
首先是还原犯罪现场:首先我定义了一个Teacher模型(testapp/models.py下)classTeacher(models.Model):SUBJECT_CHOICE=(('Math','数学'),('Chinese','语文'),('English','英语'),('PE','体育'),('Painting','美术'),('Music','音乐'),)name=models.Char