Skip to content

core.models

Overview

Abstract model bases with CRUDL permissions, singleton support, and email templates.

Classes

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

NameTypeRequiredDescription
senderyes
kwargsyes

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

NameTypeRequiredDescription
modelyes

Source

server/vueda/core/models.py:448

Source

server/vueda/core/models.py

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2