在网上找了好半天都没找到,在model中添加即可,不加的话显示就是object def __str__(self): return self.name 转载于:https://www.cnblogs.com/MarsMercury/p/9413035.html