From 5ed0128435b67dc260e9091ef4a65d74014bf855 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 6 May 2022 23:34:34 +1000 Subject: [PATCH] PEP style fixes --- InvenTree/InvenTree/serializers.py | 1 - InvenTree/plugin/builtin/integration/mixins.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/InvenTree/InvenTree/serializers.py b/InvenTree/InvenTree/serializers.py index 88132ad606..243594c77e 100644 --- a/InvenTree/InvenTree/serializers.py +++ b/InvenTree/InvenTree/serializers.py @@ -26,7 +26,6 @@ from rest_framework import serializers from rest_framework.utils import model_meta from rest_framework.fields import empty from rest_framework.exceptions import ValidationError -from rest_framework.serializers import DecimalField from .models import extract_int diff --git a/InvenTree/plugin/builtin/integration/mixins.py b/InvenTree/plugin/builtin/integration/mixins.py index fbe7e383a9..b5040de78f 100644 --- a/InvenTree/plugin/builtin/integration/mixins.py +++ b/InvenTree/plugin/builtin/integration/mixins.py @@ -612,7 +612,7 @@ class PanelMixin: if 'javascript_template' in panel: # TODO: Render the actual javascript content from a template file ... - + # Check for required keys required_keys = ['title', 'content'] @@ -623,9 +623,9 @@ class PanelMixin: # Add some information on this plugin panel['plugin'] = self panel['slug'] = self.slug - + # Add a 'key' for the panel, which is mostly guaranteed to be unique - panel['key'] = InvenTree.helpers.generateTestKey(self.slug + panel.get('title', 'panel')) + panel['key'] = InvenTree.helpers.generateTestKey(self.slug + panel.get('title', 'panel')) panels.append(panel)