mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +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
|
Base set of mixin functions and mechanisms
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self, *args, **kwargs) -> None:
|
||||||
self._mixinreg = {}
|
self._mixinreg = {}
|
||||||
self._mixins = {}
|
self._mixins = {}
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
def add_mixin(self, key: str, fnc_enabled=True, cls=None):
|
def add_mixin(self, key: str, fnc_enabled=True, cls=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user