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 template


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 requires this type of dynamic form creation.

Is there some other approach I should take, such as a template tag?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to