Monday, June 25, 2012

Re: acces cleaned data from a dynamic form

The answer to question 1:
***
1. in the template i can only get a form with {{formset}} .
{{formset.dish}} doesn't work
***
Was as easy as {{formset.form.dish}} (...sighs...)

>So hmm, you're re-presenting the form on the same url? I guess for
>debugging that works, but generally you'd redirect here.

This is only to get a basic prototype working. When it works i want to
redirect to another page with a confirmation.

When i enter in my form "Pancakes" and "Steak" this is the result:

[{}, {'dish': u'Steak'}]

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate