<s> from models import BillingCycle <EOL> def unpaid_members_data ( ) : <EOL> unpaid_members = [ ] <EOL> unpaid_reminders = BillingCycle . objects . filter ( bill__reminder_count = <NUM_LIT:2> , membership__status = '<STR_LIT:A>' , is_paid = False ) <EOL> for bc in unpaid_reminders : <EOL> member = bc . membership <EOL> accounts = member . alias_set . filter ( account = True ) <EOL> for account in accounts : <EOL> unpaid_members . append ( ( member . id , account . name ) ) <EOL> return unpaid_members </s>
