mafw.models.filter_schema

Static metadata describing the models available for filtering.

Classes

FilterSchema(root_model, allowed_models, ...] =)

Static descriptor of the models available to the GUI filter builder.

class mafw.models.filter_schema.FilterSchema(root_model: type[~mafw.db.db_model.MAFwBaseModel], allowed_models: tuple[type[~mafw.db.db_model.MAFwBaseModel], ...] = <factory>)[source]

Bases: object

Static descriptor of the models available to the GUI filter builder.

Parameters:
  • root_model – Model that controls the primary query entry point.

  • allowed_models – Supplementary models that can be joined during filtering.