Skip to content
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

Update FileFormats and Modalities to Enum subclasse #1106

Open
nozomione opened this issue Feb 11, 2025 · 0 comments
Open

Update FileFormats and Modalities to Enum subclasse #1106

nozomione opened this issue Feb 11, 2025 · 0 comments
Assignees

Comments

@nozomione
Copy link
Member

Context

Related issue #1103

In previous issues #1065 and #1066, the FileFormats and Modalities classes were added to the enums directory to improve maintainability and reusability.

Problem or idea

In this issue, we will implement the approach from the related issue by converting FileFormats and Modalities classes into Enum subclasses and using them with models.TextChoices for field's choices.

Solution or next step

  1. Convert FileFormats and Modalities into subclasses of Enum
  2. Add a helper function that returns a list of tuples from a given enum forTextChoices
  3. Update the relevant models to use models.TextChoices for their field choices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant