plugin models
Since changeset:1612 plugin can have his own django ORM models (called 'plugin models')!
You can insert model classes directly into the plugin module or create a separated models.py and import the models.
The plugin models are normal django ORM models with all features. You can insert relationships to other existing django/PyLucid models!
- install
- If the plugin would be installed the needed plugin model tables would be created automatic
- deinstall
- If a plugin would be deinstalled, the existing model tables would be droped, too!
- The model class must have a Meta class and must defined app_label = 'PyLucidPlugins'!
- The plugin module must set the variable PLUGIN_MODELS contains a list or tuple of all models.
A example implementation can you see here:
Editing the models into the django admin panle is not tested / supported (isn't it?)