Skip to content

Constants

Constants module for Django field type definitions and collections.

This module defines type aliases and collections for Django field types, particularly focusing on relationship and complex field types used across the application.

RelatedFieldTypes = Union[Type[GenericRelation], Type[ManyToManyField], Type[ManyToManyRel], Type[ManyToOneRel]] module-attribute

Type alias for Django relationship field types.

Represents a union of various Django field types that handle model relationships, including generic relations, many-to-many fields, and related field managers.

complex_fields: FrozenSet[Type[ArrayField]] = frozenset({ArrayField}) module-attribute

FrozenSet of complex Django field types.

An immutable set containing Django field types that handle complex data structures, currently only including PostgreSQL ArrayField.

related_fields: FrozenSet[RelatedFieldTypes] = frozenset({GenericRelation, ManyToManyField, ManyToManyRel, ManyToOneRel}) module-attribute

FrozenSet of Django relationship field types.

An immutable set containing all Django field types that represent relationships between models, including generic relations and many-to-many relationships.