Re: problem with saving a form

2010-09-27 Thread Nick Serra
You're just all around doing it wrong. A ModelForm is used so that you don't have to individually list all the fields you need, it is based off the model. What is the code for your Model? And also, I'd reread the form reference from the start. On Sep 26, 5:25 pm, Marc Aymerich wrote: > On Sun, Se

Re: problem with saving a form

2010-09-26 Thread Marc Aymerich
On Sun, Sep 26, 2010 at 10:15 PM, Marc Aymerich wrote: > > > On Sun, Sep 26, 2010 at 8:51 PM, Marc Aymerich wrote: > >> I'm trying to make a ModelForm in order to edit an existing object of the >> class 'member'. So I followed this documentation: >> >> >> http://docs.djangoproject.com/en/dev/topi

Re: problem with saving a form

2010-09-26 Thread Marc Aymerich
On Sun, Sep 26, 2010 at 10:34 PM, Karen Tracey wrote: > On Sun, Sep 26, 2010 at 4:15 PM, Marc Aymerich wrote: > >> It seems that the condition request.method == 'POST' is never true :( >> whyy?? > > > What does the template that contains the form look like? > > Hi Karen, Here the template: {% ex

Re: problem with saving a form

2010-09-26 Thread Karen Tracey
On Sun, Sep 26, 2010 at 4:15 PM, Marc Aymerich wrote: > It seems that the condition request.method == 'POST' is never true :( > whyy?? What does the template that contains the form look like? Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Goog

Re: problem with saving a form

2010-09-26 Thread Marc Aymerich
On Sun, Sep 26, 2010 at 8:51 PM, Marc Aymerich wrote: > I'm trying to make a ModelForm in order to edit an existing object of the > class 'member'. So I followed this documentation: > > > http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#the-save-method > > > # Create a form to edit a

problem with saving a form

2010-09-26 Thread Marc Aymerich
I'm trying to make a ModelForm in order to edit an existing object of the class 'member'. So I followed this documentation: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#the-save-method # Create a form to edit an existing Article. >>> a = Article.objects.get(pk=1) >>> f = Article