2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-19 11:16:31 +00:00

add mixins to API

This commit is contained in:
Matthias
2021-11-17 23:35:56 +01:00
parent a996be3f5c
commit 530227e15f
2 changed files with 6 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ class PluginConfig(models.Model):
name += '(not active)'
return name
# extra attributes form the registry
def mixins(self):
return self.plugin._mixinreg
# functions
def __init__(self, *args, **kwargs):