mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
name refactor
This commit is contained in:
parent
7130bacf95
commit
2bb68fadf7
@ -35,14 +35,14 @@ class MixinBase:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def registered_mixins(self, with_base: bool=False):
|
def registered_mixins(self, with_base: bool=False):
|
||||||
mxins = getattr(self, '_mixinreg', None)
|
mixins = getattr(self, '_mixinreg', None)
|
||||||
if mxins:
|
if mixins:
|
||||||
# filter out base
|
# filter out base
|
||||||
if not with_base and 'base' in mxins:
|
if not with_base and 'base' in mixins:
|
||||||
del mxins['base']
|
del mixins['base']
|
||||||
# only return dict
|
# only return dict
|
||||||
mxins = [a for a in mxins.values()]
|
mixins = [a for a in mixins.values()]
|
||||||
return mxins
|
return mixins
|
||||||
|
|
||||||
# region mixins
|
# region mixins
|
||||||
class SettingsMixin:
|
class SettingsMixin:
|
||||||
|
Loading…
Reference in New Issue
Block a user