On Jun 16, 9:46 pm, "Ronny Haryanto" <[EMAIL PROTECTED]> wrote: > Another way (which I personally prefer because it's more explicit and > clear), is to do it in the view. Don't show the author field in the > form, because we want to automatically add it before saving. > > def add_item(request): > ... > item.author = request.user > item.save() > > The syntax might not be correct, but you get the idea.
Is there any way to do the more explicit method from the admin interface? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---