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
|
||||
def registered_mixins(self, with_base: bool=False):
|
||||
mxins = getattr(self, '_mixinreg', None)
|
||||
if mxins:
|
||||
mixins = getattr(self, '_mixinreg', None)
|
||||
if mixins:
|
||||
# filter out base
|
||||
if not with_base and 'base' in mxins:
|
||||
del mxins['base']
|
||||
if not with_base and 'base' in mixins:
|
||||
del mixins['base']
|
||||
# only return dict
|
||||
mxins = [a for a in mxins.values()]
|
||||
return mxins
|
||||
mixins = [a for a in mixins.values()]
|
||||
return mixins
|
||||
|
||||
# region mixins
|
||||
class SettingsMixin:
|
||||
|
Loading…
Reference in New Issue
Block a user