Re: access to id of current user on admin

2009-05-18 Thread Martin Ostrovsky
om/en/dev/ref/contrib/admin/#modeladmin-methods On May 18, 7:01 am, Alfredo Alessandrini wrote: > Hi, > > I'm write a model for a post. > > Can I access to id of current user on admin site? > > I'm trying with: > > author = models.ForeignKey(User, default=U

access to id of current user on admin

2009-05-18 Thread Alfredo Alessandrini
Hi, I'm write a model for a post. Can I access to id of current user on admin site? I'm trying with: author = models.ForeignKey(User, default=User.id, blank=True, null=True) But don' work... Thanks, Alfredo -- from django.db imp