shivsharma07 / django-survey

Automatically exported from code.google.com/p/django-survey
0 stars 0 forks source link

Checkbox List with no image fails when taking survey.. (error in ChoiceCheckbox form in forms.py) #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a survey with a  Checkbox List, and no specified image
2. Take the survey.

What is the expected output? What do you see instead?

A survey with a choice checkbox list.
Instead it fails with an exception of ValueError because the image has no file 
associated with it.

What version of the product are you using? On what operating system?

subversion revision 92.

Please provide any additional information below.

By patching the form from:

"if opt.image.url:" to "if opt.image and opt.image.url:" fixes this (on line 
129 of forms.py)

Original issue reported on code.google.com by scan...@gmail.com on 28 Oct 2008 at 3:36

GoogleCodeExporter commented 8 years ago
This is now fixed in r94
--yml

Original comment by yann.ma...@gmail.com on 30 Oct 2008 at 1:17