mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
0f7c277e69
commit
86142856f7
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user