2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-10 01:00:30 +00:00

Plugin code bug fix

- handle case where self.plugin is None
This commit is contained in:
Oliver 2021-12-30 22:58:11 +11:00
parent d3909ef766
commit 67d9d9413f

@ -54,7 +54,11 @@ class PluginConfig(models.Model):
# extra attributes from the registry
def mixins(self):
return self.plugin._mixinreg
if self.plugin:
return self.plugin._mixinreg
else:
return {}
# functions