#NEWLINE# def get_notify_recipients( self ) : #NEWLINE# #INDENT# mail_dict = dict ( self . subscribers . values_list ( 'id' , 'email' ) ) #NEWLINE# dont_mail_pks = UserSettings . objects . filter ( user__id__in = mail_dict . keys ( ) , email = False ) #NEWLINE# dont_mail_pks = dont_mail_pks . values_list ( 'id' , flat = True ) #NEWLINE# for pk in dont_mail_pks : #NEWLINE# #INDENT# mail_dict . pop ( pk ) #NEWLINE# #UNINDENT# recipients = set ( mail_dict . values ( ) ) #NEWLINE# [ recipients . add ( t [ 1 ] ) for t in settings . ADMINS ] #NEWLINE# return recipients