Skip to content

Commit

Permalink
#19[Production] 更新生产api (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
oosprey authored and Time1ess committed Jan 24, 2018
1 parent dc22403 commit 4997ebf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Production/api/ledgers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ def get_serializer_class(self):

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

def create(self, request, pk=None):
raise MethodNotAllowed(request.method)
4 changes: 4 additions & 0 deletions Production/api/man_hour_message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from rest_framework import viewsets
from rest_framework.exceptions import MethodNotAllowed

from Core.utils.pagination import SmallResultsSetPagination
from Production.models import ProcessDetail
Expand All @@ -11,3 +12,6 @@ class ManHourMessageViewSet(viewsets.ModelViewSet):
queryset = ProcessDetail.objects.all().order_by('-pk')
filter_class = ManHourMessageFilter
serializer_class = serializers.ManHourMessageSerializer

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

0 comments on commit 4997ebf

Please sign in to comment.