From 4e157fe9561a8fa5171f5e73c451e03b695a514a Mon Sep 17 00:00:00 2001 From: eeintech Date: Tue, 3 Nov 2020 17:05:08 -0500 Subject: [PATCH] Fixed text for parent categories checkbox --- InvenTree/part/forms.py | 2 +- InvenTree/part/test_param.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/forms.py b/InvenTree/part/forms.py index 47b7ac21bc..cb4691e05b 100644 --- a/InvenTree/part/forms.py +++ b/InvenTree/part/forms.py @@ -212,7 +212,7 @@ class EditPartForm(HelperForm): parent_category_templates = forms.BooleanField(required=False, initial=False, - label=_('Include parent category parameter templates'), + label=_('Include parent categories parameter templates'), widget=forms.HiddenInput()) class Meta: diff --git a/InvenTree/part/test_param.py b/InvenTree/part/test_param.py index ad0f5ed3b6..66b2bf303c 100644 --- a/InvenTree/part/test_param.py +++ b/InvenTree/part/test_param.py @@ -46,6 +46,7 @@ class TestParams(TestCase): t3.full_clean() t3.save() + # Category templates n = PartCategoryParameterTemplate.objects.all().count() self.assertEqual(n, 2)