Added ability to delete project

This commit is contained in:
Oliver Walters 2017-04-14 09:29:58 +10:00
parent 2f3e29ab13
commit 56ba30eb52

View File

@ -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):