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=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.
Uhm... Wouldn't auto_now_add=True do the job in this case? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---