diff --git a/InvenTree/plugin/models.py b/InvenTree/plugin/models.py index b8178440af..811ed5b431 100644 --- a/InvenTree/plugin/models.py +++ b/InvenTree/plugin/models.py @@ -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