mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-11 01:25:40 +00:00
Plugin code bug fix
- handle case where self.plugin is None
This commit is contained in:
@ -54,7 +54,11 @@ class PluginConfig(models.Model):
|
||||
|
||||
# extra attributes from the registry
|
||||
def mixins(self):
|
||||
|
||||
if self.plugin:
|
||||
return self.plugin._mixinreg
|
||||
else:
|
||||
return {}
|
||||
|
||||
# functions
|
||||
|
||||
|
Reference in New Issue
Block a user