Source code for fobi.management.commands.fobi_sync_plugins
from django.core.management.base import BaseCommand
from fobi.utils import sync_plugins
[docs]class Command(BaseCommand):
"""Adds the missing plugins to database.
This command shall be ran every time a developer adds a new plugin.
The following plugins are affected:
- ``fobi.models.FormElementPlugin``
- ``fobi.models.FormHandlerPlugin``
"""