Paul's Programming Notes     Archive     Feed     Github

Django - ChoiceField Display Text

I made a repo to demonstrate how to get a django ChoiceField's current selection's display text:

I came across a few other examples, but they didn't do a good job of displaying the initial value or handling choices with integer values.