mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 02:54:34 +00:00
Plugin code bug fix
- handle case where self.plugin is None
This commit is contained in:
1 parent
d3909ef766
commit
67d9d9413f
1 file changed
+5
-1
@@ -54,7 +54,11 @@ class PluginConfig(models.Model):
|
|||||||
|
|
||||||
# extra attributes from the registry
|
# extra attributes from the registry
|
||||||
def mixins(self):
|
def mixins(self):
|
||||||
return self.plugin._mixinreg
|
|
||||||
|
if self.plugin:
|
||||||
|
return self.plugin._mixinreg
|
||||||
|
else:
|
||||||
|
return {}
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user