Django microblog showing a logged in user only his posts
        Posted  
        
            by dana
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by dana
        
        
        
        Published on 2010-05-23T21:08:42Z
        Indexed on 
            2010/05/23
            21:10 UTC
        
        
        Read the original article
        Hit count: 413
        
i have a miniblog application, with a class named New(refering to a new post), having a foreign key to an user(who has posted the entry). above i have a method that displays all the posts from all the users. I'd like to show to the logged in user, only his posts How can i do it?
Thanks in advance!
def paginate(request):
  paginator = New.objects.all()
  return render_to_response('news/newform.html', {
    'object_list': paginator,
    }, 
    context_instance=RequestContext(request)) 
© Stack Overflow or respective owner