title: How to get value from choices in Django?
body: <p>How to get a value from choices and display it on a form in Django?
  In this case (as in the picture), so that <em>English</em> is displayed, not <em>en</em></p>
  
  <p><a href="https://i.stack.imgur.com/zrKof.png" rel="nofollow noreferrer">Picture of form</a></p>
  
  <p>In the template I print the form as a variable <code>{{ form }}</code>. I also tried to output by one field <code>{{ form.language.get_lang_display }}</code>, but in this case the language field is not displayed at all.</p>
  
  <p>File <strong>models.py</strong></p>
  
  <pre><code>class AvailableLanguage(models.Model):
      LANGUAGES = (
          ('en', 'English'),
          ('ru', 'Russian'),
      )
      lang = models.CharField(max_length=50, unique=True, choices=LANGUAGES)
      lang_code = models.CharField(max_length=5, unique=True)
      slug = models.SlugField()
  
  
  class Question(models.Model):
      title = models.CharField(max_length=250)
      language = models.ForeignKey(AvailableLanguage, on_delete=models.CASCADE, default='')
      body = models.TextField()
      ...
  </code></pre>
  
  <p>File <strong>forms.py</strong></p>
  
  <pre><code>class UserQuestion(forms.ModelForm):
      class Meta:
          model = Question
          fields = ('title', 'language', 'body')
  </code></pre>
  
  <p>File <strong>add_question.html</strong></p>
  
  <pre><code>{% block content %}
      &lt;form action="." method="post" enctype="multipart/form-data"&gt;
  {#        {{ form }}#}
          {{ form.language.get_lang_display }} {#Not displayed#}
          {% csrf_token %}
          &lt;input class="btn--primary" type="submit" value="{% trans 'Создать' %}"&gt;
      &lt;/form&gt;
  {% endblock %}
  </code></pre>