class Event(models.Model): user = models.ForeignKey(User) def __unicode__(self): return self.user.username + u'的事件' 注意 user.username 转载于:https://www.cnblogs.com/kidstudy/archive/2009/12/11/1621721.html