django显示字段choices枚举值的label的方法

作者在 2023-06-29 04:21:21 发布以下内容
使用 get_FOO_display 方法

详见:https://doc.bccnsoft.com/docs/django-docs-4.0-en/ref/models/instances.html#django.db.models.Model.get_FOO_display
Python | 阅读 740 次
文章评论,共0条
游客请输入验证码
浏览2803534次
文章归档