'Return a list of member dicts.'

def get_memberships(self, current_participant=None):

    takes = self.compute_actual_takes()
    members = []
    for take in takes.values():
        member = {}
        member[u'participant_id'] = take[u'participant'].id
        member[u'username'] = take[u'participant'].username
        member[u'take'] = take[u'nominal_amount']
        member[u'balance'] = take[u'balance']
        member[u'percentage'] = take[u'percentage']
        member[u'editing_allowed'] = False
        member[u'is_current_user'] = False
        if current_participant:
            member[u'removal_allowed'] = (current_participant.username == self.owner)
            if (member[u'username'] == current_participant.username):
                member[u'editing_allowed'] = True
        member[u'last_week'] = self.get_take_last_week_for(take[u'participant'])
        members.append(member)
    return members
