There used to be a project in github that allowed you to map django models to python dataclasses, but it\'s gone now. You can still check it using the way back machine: