plugin's initialize() method is not required to be idempotent
When using ./manage.py initializeplugin
, initialize
is called each time, even when the plugin is already initialized.
It should be made sure that either plugins are responsible for this method being idempotent, or calling it just once. For the second, it's necessary to save the "initialized" state somewhere. Using a DB flag is not a good option, as it requires some projects to use a DB model without needing it.