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

@@ -79,6 +79,9 @@ human-readable error messages. We recommend using the ``django.utils.functional.
decorator, as it might get called a lot. You can also implement ``compatibility_warnings``,
those will be displayed but not block the plugin execution.
The ``AppConfig`` class may implement a method ``is_available(event)`` that checks if a plugin
is available for a specific event. If not, it will not be shown in the plugin list of that event.
Plugin registration
-------------------