mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +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 .registry import registry
|
||||||
from .plugin import InvenTreePlugin
|
from .plugin import AAInvenTreePlugin as InvenTreePlugin
|
||||||
from .integration import IntegrationPluginBase
|
from .integration import IntegrationPluginBase
|
||||||
from .action import ActionPlugin
|
from .action import ActionPlugin
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ from django.db.utils import OperationalError, ProgrammingError
|
|||||||
from django.utils.text import slugify
|
from django.utils.text import slugify
|
||||||
|
|
||||||
|
|
||||||
class InvenTreePlugin():
|
class AAInvenTreePlugin():
|
||||||
"""
|
"""
|
||||||
Base class for a plugin
|
Base class for a plugin
|
||||||
"""
|
"""
|
||||||
@ -34,7 +34,6 @@ class InvenTreePlugin():
|
|||||||
If not set plugin name slugified
|
If not set plugin name slugified
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
slug = getattr(self, 'PLUGIN_SLUG', None)
|
slug = getattr(self, 'PLUGIN_SLUG', None)
|
||||||
|
|
||||||
if slug is None:
|
if slug is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user