{% if query %}
{% for result in page.object_list %}
{% if forloop.first %}
{% endif %}
{% with result_template=result.app_label|add:"-results.html" %}
{% include "search/"|add:result_template %}
{% endwith %}
{% if forloop.last %}
{% endif %}
{% empty %}
{% trans "No results found." %}
{% endfor %}
{% if page.has_previous or page.has_next %}