On 3/25/06, PythonistL <[EMAIL PROTECTED]> wrote:
>
> I use a custom manipulator that creates  field_names.These filed names
> can be a different. To create fields I use
> formfields.IntegerField(field_name="Pieces_"+`v`, maxlength=4)
> where Dynamic_value changes.
>
> Normaly, for static field, I can use in a form {{form.FieldName}}.
> If fileds are generated in a dynamic way, how can I use it in a form?
>
> For example my custom manipulator can create
> {{form.ID_1}} only but also
> {{form.ID_2}},{{form.ID_3}} ... etc.
>
> So, is there a list where all fields are?
> Thanks.
> L.
>

say form is a FormWrapper, so you can use:

{% for f in form.fields %}
...
{% endfor %}

Manipulator also has a fields porperty.


--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to