'Return number of members in group who haven\'t accepted terms yet.'

def pending_terms_member_count(self, obj):

    return obj.groupmembership_set.filter(status=GroupMembership.PENDING_TERMS).count()
