Skip to content

Commit

Permalink
remove Delete endpoint from shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Sep 22, 2020
1 parent 18a6bb1 commit 35fd9fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion care/facility/api/viewsets/shifting.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from rest_framework.exceptions import ValidationError
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework import mixins
from rest_framework.viewsets import GenericViewSet

from care.facility.api.serializers.patient_icmr import PatientICMRSerializer
from care.facility.api.serializers.shifting import ShiftingDetailSerializer, ShiftingSerializer
Expand Down Expand Up @@ -82,7 +84,9 @@ def get_status(
modified_date = filters.DateFromToRangeFilter(field_name="modified_date")


class ShiftingViewSet(viewsets.ModelViewSet):
class ShiftingViewSet(
mixins.CreateModelMixin, mixins.ListModelMixin, mixins.RetrieveModelMixin, mixins.UpdateModelMixin, GenericViewSet
):
serializer_class = ShiftingSerializer
lookup_field = "external_id"
queryset = (
Expand Down

0 comments on commit 35fd9fd

Please sign in to comment.