Re: Iterating over fields in Formset

2013-08-11 Thread Sandeep kaur
On Mon, Aug 12, 2013 at 5:47 AM, Dan Gentry wrote: > What is the purpose of checking test.id for a value of 3 or 6? > For test.id == 3 or 6, some other code will be executed, else this code. I am currently doing for else part. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com

Re: Iterating over fields in Formset

2013-08-11 Thread Dan Gentry
What is the purpose of checking test.id for a value of 3 or 6? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: Iterating over fields in Formset

2013-08-10 Thread Sandeep kaur
On Sat, Aug 10, 2013 at 9:00 PM, Satinderpal Singh wrote: > > I think in the your views you are trying to save it under the formsets, try > to save the formsets under the form to save all the required rows. > What should be changed? This is my code : def

Re: Iterating over fields in Formset

2013-08-10 Thread Satinderpal Singh
On Aug 10, 2013 5:48 PM, "Sandeep kaur" wrote: > > On Fri, Aug 9, 2013 at 2:50 PM, Sandeep kaur wrote: > > I have my code for formset here : > > > > {% csrf_token %} > > > Your help would be really appreciated. > Waiting. > > -- > Sandeep Kaur >

Re: Iterating over fields in Formset

2013-08-10 Thread Sandeep kaur
On Fri, Aug 9, 2013 at 2:50 PM, Sandeep kaur wrote: > I have my code for formset here : > > {% csrf_token %} > Your help would be really appreciated. Waiting. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message

Iterating over fields in Formset

2013-08-09 Thread Sandeep kaur
I have my code for formset here : {% csrf_token %} {{ FAtestform_formset.management_form }} {% for form in FAtestform_formset.forms %} {% if forloop.first %} {% for field in form.visible_fields %} {{ field.label|capfirst }} {% endfor %} {% endif %} {% for