From 2498cbde797667823d3aa6a488491eefff9a5971 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 17 Sep 2021 22:59:29 +0200 Subject: [PATCH] PEP fixes --- InvenTree/part/templatetags/plugin_extras.py | 3 +-- InvenTree/plugins/plugins.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/InvenTree/part/templatetags/plugin_extras.py b/InvenTree/part/templatetags/plugin_extras.py index af80c46ccb..f400ab94ad 100644 --- a/InvenTree/part/templatetags/plugin_extras.py +++ b/InvenTree/part/templatetags/plugin_extras.py @@ -2,9 +2,7 @@ """ This module provides template tags for handeling plugins """ -from django.utils.translation import ugettext_lazy as _ from django.conf import settings as djangosettings - from django import template @@ -16,6 +14,7 @@ def plugin_list(*args, **kwargs): """ Return a list of all installed integration plugins """ return djangosettings.INTEGRATION_PLUGIN_LIST + @register.simple_tag() def plugin_settings(plugin, *args, **kwargs): """ Return a list of all settings for a plugin """ diff --git a/InvenTree/plugins/plugins.py b/InvenTree/plugins/plugins.py index 15b5a94c51..0b484b05d0 100644 --- a/InvenTree/plugins/plugins.py +++ b/InvenTree/plugins/plugins.py @@ -54,7 +54,7 @@ def get_plugins(pkg, baseclass): return plugins -def load_plugins(name:str, module, cls): +def load_plugins(name: str, module, cls): """general function to load a plugin class :param name: name of the plugin for logs