Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Tolu
Holy sh#*T, it worked!! Thanks man 2 WHOLE DAYS stuck on this. So shocked to actually see the box checked! -- From: "Malcolm Tredinnick" Sent: Friday, January 09, 2009 9:32 PM To: Subject: Re: setting the checkboxes (MultipleChoiceFie

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 21:20 -0600, Tolu wrote: > lol I had originally tried that too. Nothing seems to work! I am thinking my > logic might be wrong from the start. Sorry, I was too fast in my last reply and missed a second error in your line. Should have read more closely. [...] > > On Fri, 200

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Tolu
elected by plugging the array into the "initial" dictionary. But nothing seems to be working :-( -- From: "Malcolm Tredinnick" Sent: Friday, January 09, 2009 8:38 PM To: Subject: Re: setting the checkboxes (MultipleChoiceField probl

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 20:29 -0600, Tolu wrote: > I tried this. The checkboxes displayed but none of them were checked: > > LOOKING_FOR = ( > ('Friendship', 'Friendship'), > ('Dating', 'Dating'), > ('A Relationship', 'A Relationship'), > ('Networking', 'Networking')

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Tolu
------- From: "Malcolm Tredinnick" Sent: Friday, January 09, 2009 7:27 PM To: Subject: Re: setting the checkboxes (MultipleChoiceField problem) > > On Fri, 2009-01-09 at 08:51 -0800, over.nine.k wrote: >> To simplyfy my question: >> >> How would you set the initi

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 08:51 -0800, over.nine.k wrote: > To simplyfy my question: > > How would you set the initial value of a form.MultipleChoiceField > being populated by a dictionary? > > > Django form doc says: > > >>> class CommentForm(forms.Form): > ... name = forms.CharField(i

Re: setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread over.nine.k
To simplyfy my question: How would you set the initial value of a form.MultipleChoiceField being populated by a dictionary? Django form doc says: >>> class CommentForm(forms.Form): ... name = forms.CharField(initial='class') ... url = forms.URLField() ... comment

setting the checkboxes (MultipleChoiceField problem)

2009-01-09 Thread over.nine.k
I have a problem setting the check boxes that are "checked" when my form returns (Please let me know if my logic is wrong from go) My logic: -- After options are selected in my form, i save() the field[] in a textfield (concat string with commas) -- when textfield is returned, i split() the stri