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?
--~--~
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
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
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
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:
> =
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
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
7 matches
Mail list logo