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)