Django-taggit prefetch_related
问题 I'm building a basic time logging app right now and I have a todo model that uses django-taggit. My Todo model looks like this: class Todo(models.Model): project = models.ForeignKey(Project) description = models.CharField(max_length=300) is_done = models.BooleanField(default=False) billable = models.BooleanField(default=True) date_completed = models.DateTimeField(blank=True, null=True) completed_by = models.ForeignKey(User, blank=True, null=True) tags = TaggableManager() def __unicode__(self)