#NEWLINE# @ login_required #NEWLINE# def mark_all_seen( request ) : #NEWLINE# #INDENT# '\n    Mark all unseen notices for the requesting user as seen.  Returns a\n    ``HttpResponseRedirect`` when complete. \n    ' #NEWLINE# for notice in Notice . objects . notices_for ( request . user , unseen = True ) : #NEWLINE# #INDENT# notice . unseen = False #NEWLINE# notice . save ( ) #NEWLINE# #UNINDENT# return HttpResponseRedirect ( reverse ( 'notification_notices' ) )