[Django]-Django – Modifying the look of simple search results

7👍

This is where your problem is

                {% for i in found_entries %}
                    <li><a href="{{ i.get_absolute_url }}">{{i}}</a></li>
                {% endfor %}

When you simply show {{i}}, then the model’s __unicode__ method is used.

If you want to show more, you can use {{i.category}}, {{i.title}}, etc.

👤S.Lott

Leave a comment