Re: Getting object representing the current user

2010-05-09 Thread Paul
On May 5, 10:12 pm, Daniel Roseman wrote: > On May 5, 9:30 pm, Paul wrote: > > > > > I have the following model (stripped of comments and __unicode__ for > > brevity) which defines  a comment in my Django app (I'm not using the > > comment module provided with Django for various reasons): > > > c

Re: Getting object representing the current user

2010-05-05 Thread Daniel Roseman
On May 5, 9:30 pm, Paul wrote: > I have the following model (stripped of comments and __unicode__ for > brevity) which defines  a comment in my Django app (I'm not using the > comment module provided with Django for various reasons): > > class Comment(models.Model): >   comment = models.TextField(

Getting object representing the current user

2010-05-05 Thread Paul
I have the following model (stripped of comments and __unicode__ for brevity) which defines a comment in my Django app (I'm not using the comment module provided with Django for various reasons): class Comment(models.Model): comment = models.TextField() added_by = models.ForeignKey(User) ad