Skip to content

Switch to toggle on/off aliases in choices. #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bckohan opened this issue Mar 29, 2025 · 1 comment
Open

Switch to toggle on/off aliases in choices. #118

bckohan opened this issue Mar 29, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bckohan
Copy link
Member

bckohan commented Mar 29, 2025

e.g.

class EnumWithAlias(Enum):
    ONE = 1
    TWO = 2
    THREE = 3
    THREE_ALIAS = THREE


field = EnumField(Enum, aliases=True/False)
@bckohan bckohan added the enhancement New feature or request label Mar 29, 2025
@bckohan bckohan self-assigned this Mar 29, 2025
@bckohan bckohan modified the milestones: 2.2, 3.0, 2.3 Mar 29, 2025
@bckohan
Copy link
Member Author

bckohan commented Apr 21, 2025

Is this necessary when you can just override choices?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant