﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36240	Store original choices Enum on the model field	Evstifeev Roman		"The models filed can have choices provided in ''Enum'' (django.db.models.Choices). This original ''Enum'' class can't be retrieved from the field itself, as it only stores normalized list of (value, label) tuples in its `field.choices` property.

It would be useful to be able to retrieve the original ''Enum'' from the given model field during a process of building a json schema or pydantic model. One example of such use is [https://github.com/vitalik/django-ninja django-ninja] framework.

Currently it is possible to rebuild similar ''Enum'' from the field with `field.choices` with `Enum('FieldChoices', field.choices)` but the original Enum name and any additional meta info defined on it is lost."	New feature	closed	Database layer (models, ORM)	5.1	Normal	wontfix		Evstifeev Roman	Unreviewed	0	0	0	0	0	0
