django-关联关系的操作
OneToOne的操作
stu = Student.objects.create(name="", …)
Computer.objects.create(name=“电脑”, stu=stu)
ManyToOne的操作
school = School.objects.create(name=“xxx”)
stu = Student.objects.create(name…, school=school)
========================================
ManyToMany 的操作
teacher = Teacher.objects.create(name=“xx”)
queryset = Student.objects.all()
teacher.students.set(queryset)