2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 13:28:49 +00:00

make MixinBase betterfor init

This commit is contained in:
Matthias 2022-05-11 14:47:00 +02:00
parent f76dcdeb82
commit 355695c679
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -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):
""" """