def settings_report_disable(request, plugin_id): plugin = get_object_or_404(Report, pk=plugin_id) plugin.delete() return redirect('settings_reports')
def machine_detail_plugin_disable(request, plugin_id): plugin = get_object_or_404(MachineDetailPlugin, pk=plugin_id) plugin.delete() return redirect('settings_machine_detail_plugins')
def plugin_disable(request, plugin_id): plugin = get_object_or_404(Plugin, pk=plugin_id) plugin.delete() return redirect('plugins_page')