mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Plugin code bug fix
- handle case where self.plugin is None
This commit is contained in:
parent
d3909ef766
commit
67d9d9413f
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user