Skip to content

Instantly share code, notes, and snippets.

@blackrobot
Created May 18, 2012 19:20
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 blackrobot/2727166 to your computer and use it in GitHub Desktop.
Save blackrobot/2727166 to your computer and use it in GitHub Desktop.
garden = Garden.objects.get(slug='garden')
season = Season.objects.get(slug='summer')
###
garden.plants.filter(seasons_of_interest_includes=season.id) <<====
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment