Created
March 7, 2010 18:15
-
-
Save codysoyland/324520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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