Re: Insert insetad edition with model form

2009-04-17 Thread Dmitry Teslenko
Problem finally solved. I have same form action field for both edit/create new: {{ form.as_p }} -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? --~--~

Re: Insert insetad edition with model form

2009-03-10 Thread Dmitry Teslenko
On Tue, Mar 10, 2009 at 16:58, Daniel Roseman wrote: > On Mar 10, 1:14 pm, Dmitry Teslenko wrote: >> On Tue, Mar 10, 2009 at 16:06, Daniel Roseman >> wrote: >> > How is the view getting the task_id parameter? Your form is always >> > posting to edit/, with no parameter, so there's no way it can

Re: Insert insetad edition with model form

2009-03-10 Thread Daniel Roseman
On Mar 10, 1:14 pm, Dmitry Teslenko wrote: > On Tue, Mar 10, 2009 at 16:06, Daniel Roseman > wrote: > > How is the view getting the task_id parameter? Your form is always > > posting to edit/, with no parameter, so there's no way it can pass the > > task_id to the view. Presumably your URLconf ha

Re: Insert insetad edition with model form

2009-03-10 Thread Dmitry Teslenko
On Tue, Mar 10, 2009 at 16:06, Daniel Roseman wrote: > On Mar 10, 12:54 pm, Dmitry Teslenko wrote: >> Hello! >> >> I'm starting with django framework; I use django 1.0 and sqlite >> database backend. >> I've stumbled upon this thing: when editing model entry with ModelForm >> I get insert instead

Re: Insert insetad edition with model form

2009-03-10 Thread Daniel Roseman
On Mar 10, 12:54 pm, Dmitry Teslenko wrote: > Hello! > > I'm starting with django framework; I use django 1.0 and sqlite > database backend. > I've stumbled upon this thing: when editing model entry with ModelForm > I get insert instead of update. > > Here's view procedure: > =

Re: Insert insetad edition with model form

2009-03-10 Thread Alex Koshelev
What task_id do you send when editing the entry? On Tue, Mar 10, 2009 at 3:54 PM, Dmitry Teslenko wrote: > > Hello! > > I'm starting with django framework; I use django 1.0 and sqlite > database backend. > I've stumbled upon this thing: when editing model entry with ModelForm > I get insert inste

Insert insetad edition with model form

2009-03-10 Thread Dmitry Teslenko
Hello! I'm starting with django framework; I use django 1.0 and sqlite database backend. I've stumbled upon this thing: when editing model entry with ModelForm I get insert instead of update. Here's view procedure: = def