diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index 5a9439420d..c179cb1665 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -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) diff --git a/InvenTree/stock/forms.py b/InvenTree/stock/forms.py index aa1d5e510f..ef65b25cd9 100644 --- a/InvenTree/stock/forms.py +++ b/InvenTree/stock/forms.py @@ -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 diff --git a/InvenTree/stock/serializers.py b/InvenTree/stock/serializers.py index 90a08a536a..941219da6c 100644 --- a/InvenTree/stock/serializers.py +++ b/InvenTree/stock/serializers.py @@ -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']