django的orm操作优化 models.py from django.db import models class Author(models.Model): name = models.CharField(max_length=16) age = models.IntegerField() class Book(models.Model): authors = models.ManyToManyField('Author') pubs = models.ForeignKey("Publis…