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:
@ -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>
|
||||
|
Reference in New Issue
Block a user