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
|
||||
def mixins(self):
|
||||
return self.plugin._mixinreg
|
||||
|
||||
if self.plugin:
|
||||
return self.plugin._mixinreg
|
||||
else:
|
||||
return {}
|
||||
|
||||
# functions
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue