Select options for varchar field #601
Answered
by
aminalaee
khaliullin
asked this question in
Q&A
-
Could not find any examples of making select input with options instead of text input for varchar columns. I have enum:
and model (I am using sqlmodel):
I'd like to add select input for type field, in Django I would do this:
Is it possible to implement with sqlmodel? |
Beta Was this translation helpful? Give feedback.
Answered by
aminalaee
Sep 1, 2023
Replies: 1 comment 1 reply
-
I don’t really know about SQLModel but if you define your column as enums it will be displayed as a select option. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
khaliullin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don’t really know about SQLModel but if you define your column as enums it will be displayed as a select option.