core.models
Overview
Abstract model bases with CRUDL permissions, singleton support, and email templates.
Classes
- ActivatableBaseModel
- BaseModelMeta
- EmailTemplateBase
- FormattedNameBaseModel
- Lookup
- SingletonModel
- VuedaModel
apply_vueda_feature_policy
Resolve a prepared model's class Vueda policy and let each feature contribute to it.
Django sends class_prepared only for concrete and proxy models, after it has built the model's fields and options, so a contributor sees a complete model. A contributor may call sender.add_to_class() to add a field, a generic relation, or a descriptor; a database field added here reaches ModelState, which is what makes it visible to migration generation.
A proxy takes the policy of its concrete model and gets no contributor pass of its own, because both history triggers and workflow object state resolve a proxy to that shared table.
Signature
apply_vueda_feature_policy(sender, kwargs)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| sender | yes | ||
| kwargs | yes |
Source
server/vueda/core/models.py:453
supports_vueda_feature_policy
Return whether model belongs to the current family of VUEDA model bases.
Signature
supports_vueda_feature_policy(model)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| model | yes |
Source
server/vueda/core/models.py:448
Source
server/vueda/core/models.py