mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 03:25:42 +00:00
more code structure
This commit is contained in:
@ -4,12 +4,14 @@ import logging
|
||||
|
||||
from django.conf.urls import url, include
|
||||
from django.conf import settings
|
||||
|
||||
import plugins.plugin as plugin
|
||||
|
||||
|
||||
logger = logging.getLogger("inventree")
|
||||
|
||||
|
||||
# region mixins
|
||||
class SettingsMixin:
|
||||
"""Mixin that enables settings for the plugin"""
|
||||
def __init__(self):
|
||||
@ -71,6 +73,7 @@ class UrlsMixin:
|
||||
does this plugin use custom urls
|
||||
"""
|
||||
return bool(self.urls)
|
||||
# endregion
|
||||
|
||||
|
||||
class IntegrationPlugin(plugin.InvenTreePlugin):
|
||||
|
Reference in New Issue
Block a user