title: jinja2 groupby choice field
body: <p>In my Django model I have choice field</p>
  
  <pre><code>MY_GROUPS = [
      ('GR1', 'First Group'),
      ('GR2', 'Second Group)
  ]
  
  class MyModel(models.Model):
      ...
      group = models.CharField(choices=MY_GROUPS, max_length=3)
  </code></pre>
  
  <p>Now I use <code>groupby</code> filter to display my queryset as it is explained in <a href="http://jinja.pocoo.org/docs/2.9/templates/#groupby" rel="nofollow noreferrer">jinja2 docs</a>  </p>
  
  <pre><code>&lt;ul&gt;
  {% for group in persons|groupby('group') %}
      &lt;li&gt;{{ group.grouper }}&lt;ul&gt;
      {% for person in group.list %}
          &lt;li&gt;{{ person.first_name }} {{ person.last_name }}&lt;/li&gt;
      {% endfor %}&lt;/ul&gt;&lt;/li&gt;
  {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>But <code>{{ group.grouper }}</code> is a string which is field value: <code>GR1</code>, <code>GR2</code> . How can i get my field display name as grouper string: <em>First Group</em>, <em>Second Group</em></p>