在模型中有很多领域,
从 emp.models 导入名称
  def info(request):
     name = models.ManyToManyField(Name)
在 emp.models 中,模式为
 class Name(models.Model):
      name = models.CharField(max_length=512)
      def __unicode__(self):
          return self.name
现在,当我想查询特定的 id 时,例如:
         info=  info.objects.filter(id=a)
         for i in info:
              logging.debug(i.name) //gives an error 
查询应该如何获取名称
谢谢..