Skip to content

Instantly share code, notes, and snippets.

@codysoyland
Created March 7, 2010 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codysoyland/324520 to your computer and use it in GitHub Desktop.
Save codysoyland/324520 to your computer and use it in GitHub Desktop.
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