Skip to content
Snippets Groups Projects
Unverified Commit 49f356c3 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #763 from stdevteam/apply-submission-issue-762

Use count query instead of retrieving list and counting list length.
parents b6880d11 3b85e730
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
<div class="wrapper wrapper--medium">
<h3>Search Results</h3>
{% if search_term %}
<h5>There are {{ object_list|length }} results for: {{ search_term }}</h5>
<h5>There are {{ object_list.count }} results for: {{ search_term }}</h5>
{% endif %}
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment