core.models
Overview
Abstract model bases with CRUD permissions, singleton support, and email templates.
Classes
- ActivatableBaseModel
- BaseModelMeta
- EmailTemplateBase
- FormattedNameBaseModel
- FormattedNameManager
- 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 | Default | Description |
|---|---|---|---|---|
| sender | yes | |||
| kwargs | no |
Source
server/vueda/core/models.py:856
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 | Default | Description |
|---|---|---|---|---|
| model | yes |
Source
server/vueda/core/models.py:851
Source
server/vueda/core/models.py