[Django]-Why choice field displays keys instead of values in django queryset?

7👍

Of course there is a way:

{{ issue.get_status_display }}

In order to get the values of the STATUSes you must use a name convention get_<field_name>_display(). More on this here.

👤nik_m

Leave a comment