Пример #1
0
 def get(self, request: HttpRequest, id: str):
     id = self.parse_int_pk(id)
     controller = ControllerService.get(id)
     return ApiResponse.success(ControllerOutDto.from_controller(controller))
 def get_queryset(self):
     if self.queryset is None:
         controller = ControllerService.get(id=self.get_obj_id())
         self.queryset = AclService.resolve_acls_by_controller(
             controller_id=controller.controller_id)
     return self.queryset