PEP fixes

This commit is contained in:
Oliver 2022-02-17 17:04:51 +11:00
parent 0604e1a127
commit f485bc7d53
3 changed files with 1 additions and 6 deletions

View File

@ -1002,7 +1002,6 @@ class PartList(generics.ListCreateAPIView):
try:
in_bom_for = Part.objects.get(pk=in_bom_for)
# Extract a list of parts within the BOM
bom_parts = in_bom_for.get_parts_in_bom()
print("bom_parts:", bom_parts)

View File

@ -8,7 +8,6 @@ from __future__ import unicode_literals
from django import forms
from django.forms.utils import ErrorDict
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ValidationError
from mptt.fields import TreeNodeChoiceField
@ -16,8 +15,6 @@ from InvenTree.forms import HelperForm
from InvenTree.fields import RoundingDecimalFormField
from InvenTree.fields import DatePickerFormField
from part.models import Part
from .models import StockLocation, StockItem, StockItemTracking

View File

@ -36,7 +36,6 @@ import InvenTree.helpers
import InvenTree.serializers
from InvenTree.serializers import InvenTreeDecimalField, extract_int
import part.models as part_models
from part.serializers import PartBriefSerializer
@ -432,7 +431,7 @@ class InstallStockItemSerializer(serializers.Serializer):
def save(self):
""" Install the selected stock item into this one """
data = self.validated_data
stock_item = data['stock_item']