Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add set active status in Base Plugin
Maciej Korycinski96af6d3a1a8f
diff --git a/saleor/extensions/base_plugin.py b/saleor/extensions/base_plugin.pyindex cf9514655e..b33ba08956 100644--- a/saleor/extensions/base_plugin.py+++ b/saleor/extensions/base_plugin.py@@ -27,6 +27,7 @@ class BasePlugin:def __init__(self, *args, **kwargs):self._cached_config_from_db = None+ self.active = Nonedef __str__(self):return self.PLUGIN_NAME@@ -37,6 +38,7 @@ class BasePlugin:if plugin_config:self._cached_config_from_db = plugin_config+ self.active = plugin_config.activedef calculate_checkout_total(self,