Django print choices value

前端 未结 1 575
夕颜
夕颜 2020-12-05 06:13
EMP_CHOICES = (
         (0,\'-- Select --\'),
         (1,\'Good\'),
         (2,\'Average\'),
     )

class EMPFeedback(models.Model):
     user_choices = models.I         


        
相关标签:
1条回答
  • 2020-12-05 06:48

    There's a method for that! (™ Apple)

    fb.get_user_choices_display()
    
    0 讨论(0)
提交回复
热议问题