From 7a8e59305fea64da98a4fb5c6457f1d11505043c Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 18 Jul 2023 10:34:50 +1000 Subject: [PATCH] Allow label printing when custom plugins not enabled (#5266) - Will still allow "builtin" plugins to function --- InvenTree/label/api.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/InvenTree/label/api.py b/InvenTree/label/api.py index d833e64b71..aa5b4ce223 100644 --- a/InvenTree/label/api.py +++ b/InvenTree/label/api.py @@ -1,6 +1,5 @@ """API functionality for the 'label' app""" -from django.conf import settings from django.core.exceptions import FieldError, ValidationError from django.http import JsonResponse from django.urls import include, path, re_path @@ -161,9 +160,6 @@ class LabelPrintMixin(LabelFilterMixin): - matching plugin implements the 'labels' mixin - matching plugin is enabled """ - if not settings.PLUGINS_ENABLED: - return None # pragma: no cover - plugin_key = request.query_params.get('plugin', None) # No plugin provided!