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
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
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
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
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
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
6 matches
Mail list logo