profile/views.py
changeset 289 4607a50e7f00
parent 288 869a9ab7e2df
child 301 e346fd52baff
equal deleted inserted replaced
288:869a9ab7e2df 289:4607a50e7f00
    59     active_notifications = user.notification_sent_to.filter(is_deleted=False).order_by('sent_date').reverse()
    59     active_notifications = user.notification_sent_to.filter(is_deleted=False).order_by('sent_date').reverse()
    60 
    60 
    61     context = {'user':user,
    61     context = {'user':user,
    62                'notifications':active_notifications,
    62                'notifications':active_notifications,
    63               }                               
    63               }                               
    64 
       
    65     print active_notifications
       
    66 
    64 
    67     return render_to_response('profile/browse_notifications.html', context)
    65     return render_to_response('profile/browse_notifications.html', context)
    68 
    66 
    69 @login_required
    67 @login_required
    70 def view_notification(request, nid):
    68 def view_notification(request, nid):