Thanks to visit codestin.com Credit goes to github.com
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
Enum fields made with django-enumfields serialize incorrectly as __repr__-like strings.
__repr__
import enumfields class Action(enumfields.Enum): LIST = 'list' class Permission(models.model): action = enumfields.EnumField(Action, max_length=30)
manage.py dumpscript
app_permission_1 = UserCategoryPermission() app_permission_1.action = <Action.LIST: 'list'>
manage.py dumpdata
- model: app.permission pk: 1 fields: action: list
The text was updated successfully, but these errors were encountered:
related (code): #1746
Sorry, something went wrong.
No branches or pull requests
Enum fields made with django-enumfields serialize incorrectly as
__repr__
-like strings.Model
manage.py dumpscript
output (incorrect)yaml
manage.py dumpdata
output (correct)The text was updated successfully, but these errors were encountered: