Models¶
These are the Django model object definitions used in application with Django ORM.
- class djangocms_lotus.models.article.ArticleFlux(*args, **kwargs)[source]¶
Model for
ArticleFluxplugin parameters.- title¶
An optional title string.
- Type:
models.CharField
- template¶
Template choice from available plugin templates in setting
CMSLOTUS_ARTICLE_FLUX_TEMPLATES. Default to the first choice item.- Type:
models.CharField
- length¶
Required positive small integer.
- Type:
models.PositiveSmallIntegerField
- featured_only¶
Optional boolean.
- Type:
models.BooleanField
- from_categories¶
Optional choices of Lotus Category objects.
- Type:
models.ManyToManyField
- from_tags¶
Optional choice of Taggit Tag objects.
- Type:
models.ManyToManyField
- copy_relations(oldinstance)[source]¶
Copy relations when plugin object is copied as another object.
See:
https://docs.django-cms.org/en/latest/how_to/09-custom_plugins.html#handling-relations
NOTE: Not sure we should use this for categories since they are for specific language and plugin can’t know about target page language to know if we have to adjust or not depending language.