mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-12 07:54:14 +00:00
Draft API endpoint RUD class
- RUD = Retrieve / Update / Destroy - When issuing an Update command, the validity is checked but the model object is only saved if the POST data has "_is_final": true
This commit is contained in:
@ -11,14 +11,14 @@ from .serializers import StockItemSerializer, StockQuantitySerializer
|
||||
from .serializers import LocationSerializer
|
||||
|
||||
from InvenTree.views import TreeSerializer
|
||||
|
||||
from InvenTree.serializers import DraftRUDView
|
||||
|
||||
class StockCategoryTree(TreeSerializer):
|
||||
title = 'Stock'
|
||||
model = StockLocation
|
||||
|
||||
|
||||
class StockDetail(generics.RetrieveUpdateDestroyAPIView):
|
||||
class StockDetail(DraftRUDView):
|
||||
"""
|
||||
|
||||
get:
|
||||
|
Reference in New Issue
Block a user