我自己重写的方法:(这个方法并没有改变) def __unicode__(self): return self.username
参看下面的链接
用:(这个方法解决)
def __str__(self): return self.name
参考链接:
https://blog.csdn.net/qq_34964399/article/details/80303544
我自己重写的方法:(这个方法并没有改变) def __unicode__(self): return self.username
参看下面的链接
用:(这个方法解决)
def __str__(self): return self.name
参考链接:
https://blog.csdn.net/qq_34964399/article/details/80303544