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
Hi there
I am trying out this library and been enjoying it so far.
I am running into this issue. Whenever i use IntegerChoicesField in my model and try to create a model using Django admin interface, it throws this error:
Select a valid choice. 1 is not one of the available choices.
I am using the example code given:
class MyModel(models.Model):
...
class IntegerEnum(models.IntegerChoices):
FIRST = 1, "First Description"
SECOND = 2, "Second Description"
i_field = IntegerChoicesField(
choices_enum=IntegerEnum,
default=IntegerEnum.FIRST,
)
TextChoicesField is working for me but IntegerChoicesField is throwing this error. appreciate any help
The text was updated successfully, but these errors were encountered:
Hi there
I am trying out this library and been enjoying it so far.
I am running into this issue. Whenever i use IntegerChoicesField in my model and try to create a model using Django admin interface, it throws this error:
Select a valid choice. 1 is not one of the available choices.
I am using the example code given:
TextChoicesField is working for me but IntegerChoicesField is throwing this error. appreciate any help
The text was updated successfully, but these errors were encountered: