Skip to content

Commit

Permalink
added filter for deleted=false
Browse files Browse the repository at this point in the history
  • Loading branch information
DraKen0009 committed Dec 12, 2024
1 parent 9a20757 commit 53cab4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion care/facility/api/viewsets/camera_preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_serializer_context(self):

class CameraPresetViewSet(GenericViewSet, ListModelMixin):
serializer_class = CameraPresetSerializer
queryset = CameraPreset.objects.all().select_related(
queryset = CameraPreset.objects.filter(asset_bed__deleted=False).select_related(
"asset_bed", "created_by", "updated_by"
)
lookup_field = "external_id"
Expand Down

0 comments on commit 53cab4e

Please sign in to comment.