def filter_by_provider(self, queryset, value): """ Filter actions down to those available for a specific provider """ return InstanceAction.filter_by_provider(value, queryset)
def filter_by_instance(self, queryset, name, value): """ Filter actions down to those available for a specific instance """ return InstanceAction.filter_by_instance(value, queryset)