#NEWLINE# def human_messages( self , realm , days_ago ) : #NEWLINE# #INDENT# sent_time_cutoff = ( datetime . datetime . now ( tz = pytz . utc ) - datetime . timedelta ( days = self ) ) #NEWLINE# return human_messages . filter ( sender__realm = realm , pub_date__gt = sent_time_cutoff ) . count ( )