2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Registry name fixes

This commit is contained in:
Oliver
2021-12-31 14:28:16 +11:00
parent 02e0ea6e3a
commit 4b4d4be13e
3 changed files with 8 additions and 14 deletions

View File

@ -17,14 +17,8 @@ class SettingsMixin:
def __init__(self):
super().__init__()
self.add_mixin('globalsettings', 'has_globalsettings', __class__)
self.globalsettings = self.setup_globalsettings()
def setup_globalsettings(self):
"""
Setup global settings for this plugin
"""
return getattr(self, 'SETTINGS', None)
self.add_mixin('settings', 'has_globalsettings', __class__)
self.globalsettings = getattr(self, 'SETTINGS', None)
@property
def has_globalsettings(self):