_state_attributes = [
'id',
'prompt',
+ 'multimedia',
'answer',
'accept_all',
'multiline',
def __setstate__(self, state):
if 'id' not in state:
state['id'] = state.get('prompt', None)
- if 'dependencies' not in state:
- state['dependencies'] = []
if 'tags' not in state:
state['tags'] = set()
else:
for attr in ['accept_all', 'multiline']:
if attr not in state:
state[attr] = False
+ for attr in ['dependencies', 'multimedia']:
+ if attr not in state:
+ state[attr] = []
for attr in self._state_attributes:
if attr not in state:
state[attr] = None