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 the Django admin, when leaving a dropdown field with null=True but blank=False on the default selection of "---------", line 28 in the following code raises invalid literal for int() with base 10':
This is probably happening because the value is an empty string in this case, which should probably be treated like None in the affected function since an enum can't have a member with the empty string as name.
The text was updated successfully, but these errors were encountered:
In the Django admin, when leaving a dropdown field with
null=True
butblank=False
on the default selection of "---------", line 28 in the following code raisesinvalid literal for int() with base 10'
:django-intenumfield/django_intenum/__init__.py
Lines 26 to 29 in 579a2b8
This is probably happening because the value is an empty string in this case, which should probably be treated like
None
in the affected function since an enum can't have a member with the empty string as name.The text was updated successfully, but these errors were encountered: