Skip to content

Instantly share code, notes, and snippets.

@valerybriz
Created May 2, 2019 21:53
Show Gist options
  • Save valerybriz/3752488ee45fedbbb63656a3c986361d to your computer and use it in GitHub Desktop.
Save valerybriz/3752488ee45fedbbb63656a3c986361d to your computer and use it in GitHub Desktop.
Create the query filtering teams named tigers
# Create the query filtering teams named tigers
team = Team.objects.get(name="tigers")
team.users.all() # query performed
team.users.all() # query performed again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment