Ok, but is request available in models.py?
On Monday, February 11, 2013 9:49:47 AM UTC-5, sandy wrote: > > On Mon, Feb 11, 2013 at 7:42 PM, frocco <far...@gmail.com <javascript:>> > wrote: > > Hello, > > > > I have some logic I want to put in a model, but it requires know the > current > > user logged in. > > Is there a way to get this? > > > This gets the current logged in user : > > current_user = request.user > > -- > Sandeep Kaur > E-Mail: mkaur...@gmail.com <javascript:> > Blog: sandymadaan.wordpress.com > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.