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

View File

@ -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