Re: Accessing values in formset loops

2011-03-29 Thread Mike Ramirez
On Tuesday, March 29, 2011 12:50:09 pm Nick wrote: > I guess the bigger question is, can I access the values of the fields > without spitting out a form field? > form.field.value? After the form is bound, when you access the field, it's turned into a bound field[1] . This wrapper adds a few

Re: Accessing values in formset loops

2011-03-29 Thread Nick
I guess the bigger question is, can I access the values of the fields without spitting out a form field? On Mar 29, 2:45 pm, Nick wrote: > I am looping through a formset and attempting to add an additional > field to the form that is a multi select checkbox that has a value

Accessing values in formset loops

2011-03-29 Thread Nick
I am looping through a formset and attempting to add an additional field to the form that is a multi select checkbox that has a value of the ID of the current iteration of the formset loop. So: model1: name = CharField ID = IntegerField FK = ForeignKey('model2') model2: name my