2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Add a middleware to count queries

- https://www.dabapps.com/blog/logging-sql-queries-django-13/
This commit is contained in:
Oliver Walters
2019-05-20 18:51:57 +10:00
parent fc75ab7420
commit 34620b22b0
3 changed files with 44 additions and 19 deletions

View File

@ -85,25 +85,6 @@
<td>{{ part.allocation_count }}</td>
</tr>
{% endif %}
{% if part.supplier_count > 0 %}
<tr>
<td>
Price
</td>
<td>
{% if part.min_single_price %}
{% if part.min_single_price == part.max_single_price %}
{{ part.min_single_price }}
{% else %}
{{ part.min_single_price }} to {{ part.max_single_price }}
{% endif %}
from {{ part.supplier_count }} suppliers.
{% else %}
<span class='warning-msg'><i>No pricing data avilable</i></span>
{% endif %}
</td>
</tr>
{% endif %}
</table>
</div>
</div>