Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix dashboard/category/forms.py
michalc8f528e5486c
diff --git a/saleor/dashboard/category/forms.py b/saleor/dashboard/category/forms.pyindex f942cc9f2e..418c4e56b2 100644--- a/saleor/dashboard/category/forms.py+++ b/saleor/dashboard/category/forms.py@@ -15,7 +15,7 @@ class CategoryForm(forms.ModelForm):super(CategoryForm, self).__init__(*args, **kwargs)self.fields['is_hidden'].label = pgettext_lazy('Category form field label', 'Hide in site navigation')- if self.instance.parent and self.instance.parent.hidden:+ if self.instance.parent and self.instance.parent.is_hidden:self.fields['is_hidden'].widget.attrs['disabled'] = Trueclass Meta: