Skip to content

Instantly share code, notes, and snippets.

@codysoyland
Created March 7, 2010 18:15
Business.filter({'name__startswith': 'Free State'}).order_by('name').get(
function(businesses) {
$.each(businesses,
function (business) {
console.log(business);
business.profile.get(
function(profile) {
console.log(profile);
}
);
}
);
}
);
Business.filter({'name__startswith': 'Free State'}).order_by('name').limit(10).offset(0).each(
function(business) {
console.log(business);
business.profile.get(
function(profile) {
console.log(profile);
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment