def create_options(self, request): groups = ServerGroup.objects.values('id', 'name') server_plugins = PluginUtils.get_server_plugins() return Response({ 'statusList': ServerStatus.CHOICES, 'plugins': server_plugins, 'groups': groups })
def get_available_plugins(obj): return PluginUtils.get_server_plugins()