From 86142856f7b8c5ddf310a7f22f153082258ae73e Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 11 Jan 2022 01:25:21 +0100 Subject: [PATCH] PEP fixes --- InvenTree/plugin/__init__.py | 2 +- InvenTree/plugin/helpers.py | 2 +- InvenTree/plugin/plugin.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/InvenTree/plugin/__init__.py b/InvenTree/plugin/__init__.py index 98d0d94b3a..4aef9e3cb9 100644 --- a/InvenTree/plugin/__init__.py +++ b/InvenTree/plugin/__init__.py @@ -3,7 +3,7 @@ Utility file to enable simper imports """ from .registry import registry -from .plugin import InvenTreePlugin +from .plugin import AAInvenTreePlugin as InvenTreePlugin from .integration import IntegrationPluginBase from .action import ActionPlugin diff --git a/InvenTree/plugin/helpers.py b/InvenTree/plugin/helpers.py index ff0c4c4c4a..3b9164fc8f 100644 --- a/InvenTree/plugin/helpers.py +++ b/InvenTree/plugin/helpers.py @@ -26,7 +26,7 @@ class IntegrationPluginError(Exception): class MixinImplementationError(ValueError): """ Error if mixin was implemented wrong in plugin - Mostly raised if constant is missing + Mostly raised if constant is missing """ pass diff --git a/InvenTree/plugin/plugin.py b/InvenTree/plugin/plugin.py index 9ec01d42ca..4295c5741f 100644 --- a/InvenTree/plugin/plugin.py +++ b/InvenTree/plugin/plugin.py @@ -7,7 +7,7 @@ from django.db.utils import OperationalError, ProgrammingError from django.utils.text import slugify -class InvenTreePlugin(): +class AAInvenTreePlugin(): """ Base class for a plugin """ @@ -34,7 +34,6 @@ class InvenTreePlugin(): If not set plugin name slugified """ - slug = getattr(self, 'PLUGIN_SLUG', None) if slug is None: