标签:isp splay gen integer pre mod class choice erb
gender_choices = ((1, ‘男‘), (2, ‘女‘)) gender = models.IntegerField(verbose_name=‘性别‘, choices=gender_choices)
获取性别的名称而不是序号
标签:isp splay gen integer pre mod class choice erb
原文地址:https://www.cnblogs.com/wt7018/p/11437499.html