#NEWLINE# def mark_all_as_read( self , recipient = None ) : #NEWLINE# #INDENT# 'Mark as read any unread messages in the current queryset.\n\n        Optionally, filter these by recipient first.\n        ' #NEWLINE# qs = self . unread ( True ) #NEWLINE# if recipient : #NEWLINE# #INDENT# qs = qs . filter ( recipient = recipient ) #NEWLINE# #UNINDENT# qs . update ( unread = False )