Remove draft feature from Part RUD endpoint

This commit is contained in:
Oliver Walters 2019-04-26 00:17:02 +10:00
parent 6c3041d99c
commit 4e3b8bdd92

View File

@ -17,7 +17,6 @@ from .serializers import SupplierPartSerializer, SupplierPriceBreakSerializer
from .serializers import CategorySerializer
from InvenTree.views import TreeSerializer
from InvenTree.serializers import DraftRUDView
class PartCategoryTree(TreeSerializer):
@ -56,7 +55,7 @@ class CategoryList(generics.ListCreateAPIView):
]
class PartDetail(DraftRUDView):
class PartDetail(generics.RetrieveUpdateDestroyAPIView):
queryset = Part.objects.all()
serializer_class = PartSerializer