Skip to content

Instantly share code, notes, and snippets.

@gingerjoos
Created August 26, 2014 11:59
Show Gist options
  • Save gingerjoos/d3eadfb4ff936f61c861 to your computer and use it in GitHub Desktop.
Save gingerjoos/d3eadfb4ff936f61c861 to your computer and use it in GitHub Desktop.
An example of the Django queryset - 1
big_cities = Cities.objects.filter(population__gte=100).filter(size__gte=10)
big_canadian_cities = big_cities.filter(country='CA')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment