2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Fix calls to super()

This commit is contained in:
Oliver Walters
2022-05-06 23:32:09 +10:00
parent 12c58b14d6
commit 243e3ff37d
6 changed files with 11 additions and 11 deletions

View File

@ -979,7 +979,7 @@ class CategoryDetail(InvenTreeRoleMixin, DetailView):
def get_context_data(self, **kwargs):
context = super(CategoryDetail, self).get_context_data(**kwargs).copy()
context = super().get_context_data(**kwargs).copy()
try:
context['part_count'] = kwargs['object'].partcount()
@ -1045,7 +1045,7 @@ class CategoryParameterTemplateCreate(AjaxCreateView):
- Display parameter templates which are not yet related
"""
form = super(AjaxCreateView, self).get_form()
form = super().get_form()
form.fields['category'].widget = HiddenInput()
@ -1140,7 +1140,7 @@ class CategoryParameterTemplateEdit(AjaxUpdateView):
- Display parameter templates which are not yet related
"""
form = super(AjaxUpdateView, self).get_form()
form = super().get_form()
form.fields['category'].widget = HiddenInput()
form.fields['add_to_all_categories'].widget = HiddenInput()