RE: dynamic newforms in a template

2007-01-14 Thread mojo
Try something around {{ for field in form }} {{ field }} {{ endfor }} Works for me. -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gkelly Sent: Tuesday, January 09, 2007 9:21 PM To: Django users Subject: Re: dynamic newforms in a

Re: dynamic newforms in a template

2007-01-09 Thread gkelly
I can't use {{ form.field_name }} because the field_name is the dynamic part. The form is generated by a database configuration and I won't know ahead of time which fields will need to be in the form. I imagine django would make it easy to do something like this, since the admin interface also req

Re: dynamic newforms in a template

2007-01-08 Thread Adrian Holovaty
On 1/8/07, gkelly <[EMAIL PROTECTED]> wrote: Please have a look at the code at: http://dpaste.com/4503/ I am having a problem with a widget's render method not being called from a template. I'm not sure if this is the intended way to render a widget when manually placing them in a template, ra

dynamic newforms in a template

2007-01-08 Thread gkelly
Please have a look at the code at: http://dpaste.com/4503/ I am having a problem with a widget's render method not being called from a template. I'm not sure if this is the intended way to render a widget when manually placing them in a template, rather than using something like {{ form.as_p }