Dynamic models without dynamic models
summary
Work on the Arches framework produces a custom QuerySet that implements a with_attributes entry point to materialize schema-driven fields from an EAV/JSON-backed store, annotating instances so they can be mutated and saved back without generating SQL views or new tables. The solution overrides private hooks like _clone and _fetch_all to preserve schema metadata, generates DRF serializers on the fly using type, and succeeds in reducing ad hoc un/transformation across projects.
AI-written summary · about
