Django-autocomplete-light migrate from 2.3.3 to 3.1 select2 rendering
<p>In v. 2.3.3 I used to customize the results with a template like this in "navigation_autocomplete/autocomplete.html":</p>

<pre><code>  {% for finded in results %}
  &lt;tr &gt;
    &lt;td&gt;&lt;a class="button"&gt; {{ finded.name }}&lt;/a&gt;   &lt;/td&gt;
    &lt;td&gt;{{ finded.code  |default:" - " }} &lt;/td&gt;

  {% empty %}
  &lt;tr&gt; Nothing found &lt;/tr&gt;
   {% endfor %}
</code></pre>

<p>Now I understand that you use select2, but looking in select2.js I cannot understand where data are rendered.</p>

<p><a href="https://github.com/yourlabs/django-autocomplete-light/blob/0bb92035f2a146a829a9ed992d0000559c6d0d02/src/dal_select2/views.py" rel="nofollow">https://github.com/yourlabs/django-autocomplete-light/blob/0bb92035f2a146a829a9ed992d0000559c6d0d02/src/dal_select2/views.py</a></p>

<p>I get only the "text" that is returned by the unicode method of the searched model.
What am I missing to customize display of data?</p>