On 11/4/05, Flavio Curella <[EMAIL PROTECTED]> wrote: > according to > http://www.djangoproject.com/documentation/request_response/ I can > access to currently logged-in user: > > <blockquote> > user > A django.models.auth.users.User object representing the currently > logged-in user. > </blockquote> > > But dopcumentation tell no more than that about this. > How can I access to id of current logged-in user in a model?
The documentation you cite refers to request objects. Models don't know anything about requests or responses -- they're decoupled from the concept of Web applications. As of now, there's no way to specify that the currently logged-in user should be stored in a field in the admin interface. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org