Skip to content
New issue

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

Changed serialization for OptionSingleChoice #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikaczma
Copy link

Changed serialization for OptionSingleChoice as saved as list not single value.

When OptionList tries to save options to file SingleChoice option saves not single value but a list.
It cannot be serialized then and catches AttributeError: 'OptionSingleChoice' object has no attribute 'decode'

This issue can be solved or by changing serialization type (as i.e. MultiChoice) or add decode attribute to OptionSingleChoice. IMO first option is more convenient as both SingleChoice and MultiChoice inherits from _OptionLimitedChoices_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant