Re: Making a date_created field work

2006-09-27 Thread Ivan Sagalaev
James Bennett wrote: > Default values are *only* filled in when the field is displayed on an > end-user form. If you don't want to display a field, but still > automatically fill it in, you have two options: > > 1) Have your view code fill it in before doing manipulator validation > 2) Set 'blank

Re: Re: Making a date_created field work

2006-09-26 Thread James Bennett
On 9/26/06, Mongo <[EMAIL PROTECTED]> wrote: > I would like it to appear as if it was a default value for the object, > to be honest. :) And by that I mean I would like to be able to display > the default-value of date_created on the create page (and the actual > date_created of the object on an e

Re: Making a date_created field work

2006-09-26 Thread Mongo
I would like it to appear as if it was a default value for the object, to be honest. :) And by that I mean I would like to be able to display the default-value of date_created on the create page (and the actual date_created of the object on an edit page.) Doing it in save() doesn't help. Doing it

Re: Making a date_created field work

2006-09-26 Thread James Bennett
On 9/26/06, Mongo <[EMAIL PROTECTED]> wrote: > Which works when presenting the "create" page to the user, but when > they submit, the "new_data = request.POST.copy()" causes new_data to be > constructed without date_created, causing an error when I try to save > since it. Default values are *only