Skip to main content

Module model

Module model 

Source
Expand description

Django model field extraction and type mapping.

This module provides the bridge between Django’s Python model _meta API and the Rust-native FieldDescriptor system. It extracts field definitions from a live Django model class and converts Python field values into FieldValue variants for processing by the serializer and validator.

Functions§

convert_python_value_to_field
Converts a Python object from a Django model instance into a FieldValue.
extract_field_descriptors
Extracts field descriptors from a Django model class via its _meta API.