From 4e3b8bdd92a524d58a597dab95d74a39f0fe2bd4 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 26 Apr 2019 00:17:02 +1000 Subject: [PATCH] Remove draft feature from Part RUD endpoint --- InvenTree/part/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index 18498207c2..d3d8677428 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -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