Re: Forms and edition of an object : non-pythonic default behaviour

2008-09-07 Thread Denis Frère
nks for your answer and again : great job ! I'm almost as excited discovering Django as I was when discovering Python years ago. Denis > > On Sep 7, 10:10 am, Denis Frère <[EMAIL PROTECTED]> wrote: > > > On Sep 6, 9:43 pm, "James Bennett" <[EMAIL PROTECTE

Re: Forms and edition of an object : non-pythonic default behaviour

2008-09-06 Thread Denis Frère
On Sep 6, 9:43 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sat, Sep 6, 2008 at 8:40 AM, Denis Frère <[EMAIL PROTECTED]> wrote: > > Why LinkForm(request.POST, instance=link) doesn't behaves like > > link.update(request.POST) ? > > it doesn

Forms and edition of an object : non-pythonic default behaviour

2008-09-06 Thread Denis Frère
When editing an object, I find it strange that untouched values are set to blank. Let's say I have a link object with a date_created field. When I use a default LinkForm to edit my links, if I don't exclude the date_created field, that field is set to blank if I don't use that field in my templat