diff --git a/apps/ops/api/adhoc.py b/apps/ops/api/adhoc.py index 77c989940..fdb82d8c1 100644 --- a/apps/ops/api/adhoc.py +++ b/apps/ops/api/adhoc.py @@ -30,7 +30,7 @@ class AdHocViewSet(JMSBulkModelViewSet): def get_queryset(self): queryset = super().get_queryset() user = self.request.user - if is_true(self.request.query_params.get('only_myself')): + if is_true(self.request.query_params.get('only_mine')): queryset = queryset.filter(creator=user) else: queryset = queryset.filter(Q(creator=user) | Q(scope=Scope.public)) diff --git a/apps/ops/api/playbook.py b/apps/ops/api/playbook.py index cab0c960d..6c3ed5a7c 100644 --- a/apps/ops/api/playbook.py +++ b/apps/ops/api/playbook.py @@ -57,7 +57,7 @@ class PlaybookViewSet(JMSBulkModelViewSet): def get_queryset(self): queryset = super().get_queryset() user = self.request.user - if is_true(self.request.query_params.get('only_myself')): + if is_true(self.request.query_params.get('only_mine')): queryset = queryset.filter(creator=user) else: queryset = queryset.filter(Q(creator=user) | Q(scope=Scope.public))