[Fixed]-Why does my IntegerField, used to create a dropdown menu, not work?

1👍

The data is stored in the database as integers. To display the Yes/No value, you need to use this:

{{ get_tidligere_klient_display }}

This will match the value stored in database and display the proper word. Like:

{% for client in client_list %} 

    {{ client.get_tidligere_klient_display }}

{% endfor %}
👤masnun

Leave a comment