javed-karim / django-survey

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

Add question type "checkbox list" #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is not an issue but rather an enhancement. The goal of this patch is
to enable the an additional question type : "check box list"

The most important part of the patch has been proposed by Doug on the
mailing list. I have added a couple of modification to make it works.

The biggest impact is that I had to comments the following line in models.py : 
  * # unique_together = (('question', 'session_key'),)
It is part of the class Answer. 

--yml

Original issue reported on code.google.com by yann.ma...@gmail.com on 3 Apr 2008 at 12:05

Attachments:

GoogleCodeExporter commented 8 years ago
Marking this as an enhancement.
I have a local version of this almost working.
The main addition to the patch is extra validation on the Answer model so that 
we get
back the unique_together behavior for non-multi-answer questions. This is done 
via
form/model validators and should port easily to the newforms admin system.

Need to add some actual automated tests for this.

Original comment by doug.nap...@gmail.com on 28 Apr 2008 at 8:52

GoogleCodeExporter commented 8 years ago
As of now in trunk I have added a uuid of the interview on the anwers. This is 
useful
to count the number of interview. I have also commited the patch enabling the
checkbox list.

Original comment by yann.ma...@gmail.com on 2 May 2008 at 2:39

GoogleCodeExporter commented 8 years ago

Original comment by yann.ma...@gmail.com on 26 May 2008 at 10:58