From 08ac7e2a368dee9b9edcdbdf79bdc935b5cf84cc Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 25 May 2019 23:45:26 +1000 Subject: [PATCH] Rendering tweaks --- InvenTree/part/templates/part/part_base.html | 2 +- InvenTree/part/templates/part/variants.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index cc1ed3df9f..42bbbbf8fd 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -17,7 +17,7 @@ {% endif %} {% if part.variant_of %}
- This part is a variant of {{ part.variant_of.full_name }} + This part is a variant of {{ part.variant_of.full_name }}
{% endif %} diff --git a/InvenTree/part/templates/part/variants.html b/InvenTree/part/templates/part/variants.html index 8bcf458602..cea712ea03 100644 --- a/InvenTree/part/templates/part/variants.html +++ b/InvenTree/part/templates/part/variants.html @@ -15,7 +15,7 @@
- {% if part.active %} + {% if part.has_variants and part.active %} {% endif %}