Skip to content

Commit

Permalink
#19 [Production] 允许删除功能 (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
oosprey authored and Time1ess committed Jan 18, 2018
1 parent 27ee116 commit 8798333
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Production/api/production_plan.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from rest_framework import viewsets
from rest_framework.exceptions import MethodNotAllowed

from Core.utils.pagination import SmallResultsSetPagination
from Production.models import ProductionPlan
Expand All @@ -19,6 +18,3 @@ def get_serializer_class(self):
return serializers.ProductionPlanCreateSerializer
else:
return serializers.ProductionPlanUpdateSerializer

def destroy(self, request, pk=None):
raise MethodNotAllowed(request.method)

0 comments on commit 8798333

Please sign in to comment.