django-choices-field¶
This lib provides integration for enum resolution for Django's TextChoices/IntegerChoices when defining the fields using the django-choices-field lib:
models.py | |
---|---|
types.py | |
---|---|
The code above would generate the following schema:
This lib provides integration for enum resolution for Django's TextChoices/IntegerChoices when defining the fields using the django-choices-field lib:
models.py | |
---|---|
types.py | |
---|---|
The code above would generate the following schema: