equal
deleted
inserted
replaced
40 return render_to_response("profile/edit.html", context) |
40 return render_to_response("profile/edit.html", context) |
41 else: |
41 else: |
42 form = EditProfileForm(instance=profile) |
42 form = EditProfileForm(instance=profile) |
43 context.update({"form":form}) |
43 context.update({"form":form}) |
44 return render_to_response("profile/edit.html", context) |
44 return render_to_response("profile/edit.html", context) |
|
45 |
|
46 @login_required |
|
47 def browse_notifications(request): |
|
48 """ get the list of notifications that are not deleted and display in |
|
49 datetime order.""" |
|
50 |
|
51 user = get_user(request.user) |
|
52 |
|
53 active_notifications = user.notification_sent_to.filter(is_deleted=False).order_by('sent_date').reverse() |
|
54 |
|
55 context = {'user':user, |
|
56 'notifications':active_notifications, |
|
57 } |
|
58 return render_to_response('profile/browse_notifications.html', context) |