gender_choices = ((1, '男'), (2, '女')) gender = models.IntegerField(verbose_name='性别', choices=gender_choices)
获取性别的名称而不是序号
get_gender_display()