You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Convert FileFormats and Modalities into subclasses of Enum
Add a helper function that returns a list of tuples from a given enum forTextChoices
Update the relevant models to use models.TextChoices for their field choices
The text was updated successfully, but these errors were encountered:
Context
Related issue #1103
In previous issues #1065 and #1066, the
FileFormats
andModalities
classes were added to theenums
directory to improve maintainability and reusability.Problem or idea
In this issue, we will implement the approach from the related issue by converting
FileFormats
andModalities
classes intoEnum
subclasses and using them withmodels.TextChoices
for field'schoices
.Solution or next step
FileFormats
andModalities
into subclasses ofEnum
TextChoices
models.TextChoices
for their fieldchoices
The text was updated successfully, but these errors were encountered: