Add is_available hook for plugin configs

This commit is contained in:
Raphael Michel
2019-01-12 14:10:56 +01:00
parent 75a966529e
commit d5ac155914
5 changed files with 13 additions and 5 deletions

View File

@@ -759,7 +759,7 @@ class Event(EventMixin, LoggedModel):
plugins_active = self.get_plugins()
plugins_available = {
p.module: p for p in get_all_plugins()
p.module: p for p in get_all_plugins(self)
if not p.name.startswith('.') and getattr(p, 'visible', True)
}