Skip to content

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