djangoadmin中2个字段连接 姓名组合fullname
def full_name(self):
return (self.last_name+self.first_name)
def __str__(self):
return self.full_name()
本文来自博客园,作者:super_ip,转载请注明原文链接:https://www.cnblogs.com/superip/p/17364586.html
def full_name(self):
return (self.last_name+self.first_name)
def __str__(self):
return self.full_name()
本文来自博客园,作者:super_ip,转载请注明原文链接:https://www.cnblogs.com/superip/p/17364586.html