Ok when i render {{formset}} in the template everything works fine. When i
render the form fields seperately, the first field of the "dishes form" is
missing. This wont be hard to figure out further. Thanks for all the help!
Rob
--
You received this message because you are subscribed to the Go
This is how the POST looks:
nameu'Johnson'
form-MAX_NUM_FORMS u' '
form-1-dish u'fried egg'
dishu'steak'
form-INITIAL_FORMS u'0'
csrfmiddlewaretoken u'c12349d127dbbd44e829e756613719c'
form-TOTAL_FORMSu'2'
--
You received this message because you are subscribed t
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 he
On 25-6-2012 12:52, het.oosten wrote:
> Thank you for your help!
>
>> I don't understand your questions.
>
> I am sorry about that, I probably ask my question the wrong way
> because of my lack of experience
>
>> A formset is a set of forms. What would {{ formset.dish }} even refer to?
>> Only t
Thank you for your help!
> I don't understand your questions.
I am sorry about that, I probably ask my question the wrong way
because of my lack of experience
> A formset is a set of forms. What would {{ formset.dish }} even refer to?
> Only the forms inside the formset have a `dish` field.
Whe
On Sunday, 24 June 2012 15:36:27 UTC+1, het.oosten wrote:
>
> Django 1.2.3
>
> For a restaurant i want to make a form, were the user can add their
> address, and their order. The order part is dynamic (users can add
> extra fields). I used jquery.formset for this.
>
> To accomplish this i have
Django 1.2.3
For a restaurant i want to make a form, were the user can add their
address, and their order. The order part is dynamic (users can add
extra fields). I used jquery.formset for this.
To accomplish this i have an address form and a dishes formset:
class Address(models.Model):
7 matches
Mail list logo