2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 12:50:55 +00:00

Added checkbox to add parameter template to all categories

This commit is contained in:
eeintech
2020-11-02 12:20:29 -05:00
parent 3a347fba21
commit 978b5f869d
4 changed files with 53 additions and 14 deletions

View File

@@ -251,12 +251,17 @@ class EditCategoryForm(HelperForm):
class EditCategoryParameterTemplateForm(HelperForm):
""" Form for editing a PartCategoryParameterTemplate object """
add_to_all_categories = forms.BooleanField(required=False,
initial=False,
help_text=_('Add parameter template to all categories'))
class Meta:
model = PartCategoryParameterTemplate
fields = [
'category',
'parameter_template',
'default_value',
'add_to_all_categories',
]