Re: Field.Choices in Template

2011-10-27 Thread Tom Evans
On Wed, Oct 26, 2011 at 7:22 PM, Kurtis Mullins wrote: > Hey Guys, > I hate to bother you again. But -- is there a way to get the currently > selected data from this set? For example, a user hits the page and all > choices are displayed fine. But, they pick some choices. They haven't > finished ed

Re: Field.Choices in Template

2011-10-26 Thread Kurtis Mullins
Hey Guys, I hate to bother you again. But -- is there a way to get the currently selected data from this set? For example, a user hits the page and all choices are displayed fine. But, they pick some choices. They haven't finished editing the form or maybe they made a mistake, anyways they land in

Re: Field.Choices in Template

2011-10-25 Thread Andre Terra
I remember trying to help you with this on IRC, Kurtis. I've had the same problem before, but I could never remember that BoundFields have a field attribute.. If there isn't a note in the docs (or even better, an example), I'll make sure to write a patch in the next few days. Cheers, AT On 10/25

Re: Field.Choices in Template

2011-10-24 Thread Kurtis
Thank you so much for this, Tom! I've asked this question quite a few times in IRC and couldn't come across the answer I was looking for. I figured it was possible, I just had no idea how to access it. Much appreciation! On Oct 24, 11:26 am, Tom Evans wrote: > On Thu, Oct 20, 2011 at 8:37 PM, Kur

Re: Field.Choices in Template

2011-10-24 Thread Tom Evans
On Thu, Oct 20, 2011 at 8:37 PM, Kurtis wrote: > Hey, > > I'm trying to build a custom template for my ModelForm. My ModelForm > contains several M2M fields. If I run the ModelForm.as_view and then > in my template print {{ form.as_p }} it'll automagically display those > choices. > > Now what I w

Re: Field.Choices in Template

2011-10-21 Thread Kurtis Mullins
Bump On Thu, Oct 20, 2011 at 3:37 PM, Kurtis wrote: > Hey, > > I'm trying to build a custom template for my ModelForm. My ModelForm > contains several M2M fields. If I run the ModelForm.as_view and then > in my template print {{ form.as_p }} it'll automagically display those > choices. > > Now w

Field.Choices in Template

2011-10-20 Thread Kurtis
Hey, I'm trying to build a custom template for my ModelForm. My ModelForm contains several M2M fields. If I run the ModelForm.as_view and then in my template print {{ form.as_p }} it'll automagically display those choices. Now what I want to do is take advantage of that magic and print out those