I think I found the answer here: http://www.b-list.org/weblog/2006/11/02/django-tips-auto-populated-fields
Grupo Django ha escrito: > Hello, I'm writing an application for publishing news, one of the > fields is: > author = models.CharField( maxlength=100) > > I want that that field is filled automatically when someone add a new > from the administration zone. > Is there any way of defining a default parameter with the username who > is actually creating the content? > e.g. > author = models.CharField( maxlength=100, default=username) > > Thank you! --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---