@list_route()<EOL><INDENT>@permission_required('<STR_LIT>')<EOL>def dashboard_list(self, request, *args, **kwargs):  <DEDENT>
self.queryset = self.queryset.order_by('<STR_LIT:name>')<EOL>enterprise_id = self.request.query_params.get('<STR_LIT>', None)<EOL>enterprise_slug = self.request.query_params.get('<STR_LIT>', None)<EOL>enterprise_name = self.request.query_params.get('<STR_LIT>', None)<EOL>if enterprise_id is not None:<EOL><INDENT>self.queryset = self.queryset.filter(uuid=enterprise_id)<EOL><DEDENT>elif enterprise_slug is not None:<EOL><INDENT>self.queryset = self.queryset.filter(slug=enterprise_slug)<EOL><DEDENT>elif enterprise_name is not None:<EOL><INDENT>self.queryset = self.queryset.filter(name__icontains=enterprise_name)<EOL><DEDENT>return self.list(request, *args, **kwargs)<EOL>
Supports listing dashboard enterprises for edx-portal frontend.