so i want generate an excel, but when i print there is a little problem.
in module_one there have a participant type which is a type are selection.
in wizard_one i have to generate that selection into a string
but when i generate it what i got is selection value not a string
ex : i want Low Levy, what i got low_levy
So i tried to do this
if course.atnd_type_id.type == 'resident':
course.atnd_type_id.type = 'Resident'
if course.atnd_type_id.type == 'worker_level':
course.atnd_type_id.type = 'Worker Level'
if course.atnd_type_id.type == 'supervisor_level':
course.atnd_type_id.type = 'Supervisor Level'
if course.atnd_type_id.type == 'shell':
course.atnd_type_id.type = 'Shell'
if course.atnd_type_id.type == 'em':
course.atnd_type_id.type = 'EM'
if course.atnd_type_id.type == 'low_levy':
course.atnd_type_id.type = 'Low Levy'
if course.atnd_type_id.type == 'aop':
course.atnd_type_id.type = 'AOP'
what i got ValueError: Wrong value for course.attendees.type.type: 'Low Levy'