mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make MixinBase betterfor init
This commit is contained in:
parent
f76dcdeb82
commit
355695c679
@ -116,9 +116,10 @@ class MixinBase:
|
||||
Base set of mixin functions and mechanisms
|
||||
"""
|
||||
|
||||
def __init__(self) -> None:
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
self._mixinreg = {}
|
||||
self._mixins = {}
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def add_mixin(self, key: str, fnc_enabled=True, cls=None):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user