From 56ba30eb5257ff7b64b5dc273002ab16df49a9ac Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 14 Apr 2017 09:29:58 +1000 Subject: [PATCH] Added ability to delete project --- InvenTree/project/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/project/views.py b/InvenTree/project/views.py index cbae1e88ce..f7a5359d7e 100644 --- a/InvenTree/project/views.py +++ b/InvenTree/project/views.py @@ -6,7 +6,7 @@ from .serializers import ProjectCategoryDetailSerializer from .serializers import ProjectPartSerializer -class ProjectDetail(generics.RetrieveUpdateAPIView): +class ProjectDetail(generics.RetrieveUpdateDestroyAPIView): """ Project details """ @@ -27,7 +27,7 @@ class NewProjectCategory(generics.CreateAPIView): """ serializer_class = ProjectCategoryDetailSerializer permission_classes = (permissions.IsAuthenticatedOrReadOnly,) - + class ProjectCategoryDetail(generics.RetrieveUpdateAPIView):