Skip to content

Commit

Permalink
Add DestroyModelMixin to AssetBed (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
arpancodes authored Mar 24, 2022
1 parent a2d44d5 commit 9f39d00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion care/facility/api/viewsets/bed.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ class AssetBedFilter(filters.FilterSet):
bed = filters.UUIDFilter(field_name="bed__external_id")


class AssetBedViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, UpdateModelMixin, GenericViewSet):
class AssetBedViewSet(
ListModelMixin, RetrieveModelMixin, CreateModelMixin, UpdateModelMixin, DestroyModelMixin, GenericViewSet
):
queryset = AssetBed.objects.all().select_related("asset", "bed").order_by("-created_date")
serializer_class = AssetBedSerializer
filter_backends = (filters.DjangoFilterBackend,)
Expand Down

0 comments on commit 9f39d00

Please sign in to comment.