mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP style fixes
This commit is contained in:
parent
fd42149f67
commit
26d1a25f31
@ -19,8 +19,8 @@ from company.models import SupplierPart
|
||||
from .models import PurchaseOrder, PurchaseOrderLineItem
|
||||
from .serializers import POSerializer, POLineItemSerializer
|
||||
|
||||
from .models import SalesOrder, SalesOrderLineItem, SalesOrderAllocation
|
||||
from .serializers import SalesOrderSerializer, SOLineItemSerializer, SalesOrderAllocationSerializer
|
||||
from .models import SalesOrder, SalesOrderLineItem
|
||||
from .serializers import SalesOrderSerializer, SOLineItemSerializer
|
||||
|
||||
|
||||
class POList(generics.ListCreateAPIView):
|
||||
|
@ -482,4 +482,3 @@ class SalesOrderAllocation(models.Model):
|
||||
return self.item.location.pathstring
|
||||
else:
|
||||
return ""
|
||||
|
@ -12,7 +12,6 @@ from django.db.models import Count
|
||||
from InvenTree.serializers import InvenTreeModelSerializer
|
||||
from company.serializers import CompanyBriefSerializer
|
||||
from part.serializers import PartBriefSerializer
|
||||
from stock.serializers import StockItemSerializer
|
||||
|
||||
from .models import PurchaseOrder, PurchaseOrderLineItem
|
||||
from .models import SalesOrder, SalesOrderLineItem
|
||||
|
@ -1227,7 +1227,7 @@ class SalesOrderAllocationCreate(AjaxCreateView):
|
||||
# Hide the 'line' field
|
||||
form.fields['line'].widget = HiddenInput()
|
||||
|
||||
except KeyError: # (ValueError, SalesOrderLineItem.DoesNotExist):
|
||||
except (ValueError, SalesOrderLineItem.DoesNotExist):
|
||||
pass
|
||||
|
||||
return form
|
||||
|
Loading…
Reference in New Issue
Block a user