shivsharma07 / django-survey

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

Checkbox answers don't save with user. #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a form with a checkbox 
2. Have a user fill it out.
3. Note that (e.g. in admin) the Answer record has no user/user_id

What is the expected output? What do you see instead?
The Answer record should have a user_id

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

Please provide any additional information below.
The problem is that the extra save() code in BaseAnswerForm() became out of
sync with ChoiceCheckbox()'s override.  The patch fixes the issue and makes
it slightly more likely that this will not happen in the future.

Original issue reported on code.google.com by schuyle...@gmail.com on 10 Aug 2009 at 5:56

Attachments:

GoogleCodeExporter commented 8 years ago
I was able to replicate this issue. I patched with said patch, still 
experiencing the issue.

Original comment by john.p...@gmail.com on 23 Sep 2009 at 6:03

GoogleCodeExporter commented 8 years ago
could you send me a fixture for your survey data, perhaps?  
I've confirmed (again) that it is working for me with my patch.

Original comment by schuyle...@gmail.com on 23 Sep 2009 at 2:25

GoogleCodeExporter commented 8 years ago
While I'd like to come up with a better solution the attached patch should be a 
quick
fix.

Original comment by flynn...@gmail.com on 28 Jan 2010 at 11:03

Attachments: