mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
PEP fixes
This commit is contained in:
@ -50,7 +50,7 @@ class PartCreate(AjaxCreateView):
|
||||
"""
|
||||
model = Part
|
||||
form_class = EditPartForm
|
||||
|
||||
|
||||
ajax_form_title = 'Create new part'
|
||||
ajax_template_name = 'modal_form.html'
|
||||
|
||||
@ -89,7 +89,7 @@ class PartCreate(AjaxCreateView):
|
||||
initials = super(PartCreate, self).get_initial()
|
||||
|
||||
else:
|
||||
initials = super(PartCreate, self).get_initial()
|
||||
initials = super(PartCreate, self).get_initial()
|
||||
|
||||
if self.get_category_id():
|
||||
initials['category'] = get_object_or_404(PartCategory, pk=self.get_category_id())
|
||||
|
Reference in New Issue
Block a user