Remove ability to delete part via API

This commit is contained in:
Oliver Walters 2019-04-28 23:41:47 +10:00
parent 73f672495d
commit 6612e91aec

View File

@ -70,7 +70,7 @@ class CategoryDetail(generics.RetrieveUpdateDestroyAPIView):
queryset = PartCategory.objects.all()
class PartDetail(generics.RetrieveUpdateDestroyAPIView):
class PartDetail(generics.RetrieveUpdateAPIView):
""" API endpoint for detail view of a single Part object """
queryset = Part.objects.all()
serializer_class = PartSerializer