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

PEP fixes

This commit is contained in:
Oliver Walters
2019-04-18 23:47:04 +10:00
parent 8040ad8a6a
commit 456164f1d9
3 changed files with 4 additions and 3 deletions

View File

@ -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())