Re: Need Help Iterating Through a Form With HTML Interspersed

2007-12-01 Thread machineghost
> (You did remember to pass in 'firstSetOfFields' as a variable in your > template context, right?). *sigh* Sadly, I didn't; as soon as I did everything worked fine; thanks. Jeremy On Dec 1, 4:26 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On 12/1/07, machineghost <[EMAIL PROTECTED]> wrote:

Re: Need Help Iterating Through a Form With HTML Interspersed

2007-12-01 Thread Karen Tracey
On 12/1/07, machineghost <[EMAIL PROTECTED]> wrote: > > > First off thanks in advance for any help you can provide. My problem > is that I have a very long form with a very repetitive layout: > > {{ field.label }} > {{ field }} > > which should in theory be perfect for wrapping inside a {% f

Re: Need Help Iterating Through a Form With HTML Interspersed

2007-12-01 Thread machineghost
P.S. I also tried using {% ifequals field.__repr__ form.field1.__repr__ %} to compare the objects, but Django (intelligently) prevents you from accessing __ methods in templates. On Dec 1, 3:17 pm, machineghost <[EMAIL PROTECTED]> wrote: > First off thanks in advance for any help you can provide

Need Help Iterating Through a Form With HTML Interspersed

2007-12-01 Thread machineghost
First off thanks in advance for any help you can provide. My problem is that I have a very long form with a very repetitive layout: {{ field.label }} {{ field }} which should in theory be perfect for wrapping inside a {% for field in form %} {% endfor %} loop; right? Except there's one pro