mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Added ability to delete project
This commit is contained in:
parent
2f3e29ab13
commit
56ba30eb52
@ -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):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user