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* 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=True' for the field, and have the model's 'save' method fill in the current date and time if there's no value for it. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---

