We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Django model CharField's can have a text_choices set in the config to narrow an arbitrary string to a specific one.
CharField
text_choices
Text choices are commonly sub classes like the following:
class Vehicle(models.TextChoices): CAR = "C" TRUCK = "T" JET_SKI = "J"
It would be handy to provide a Djelm analogue to this class and produce a CustomType:
CustomType
type Vehicle = Car String | Truck String | Jet_ski String
Some discussion of this in #99
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Django model
CharField
's can have atext_choices
set in the config to narrow an arbitrary string to a specific one.Text choices are commonly sub classes like the following:
It would be handy to provide a Djelm analogue to this class and produce a
CustomType
:Some discussion of this in #99
The text was updated successfully, but these errors were encountered: