Created
May 2, 2019 21:56
-
-
Save valerybriz/5023eb05a7d9a28531ca282c0b17c4f0 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
# Hits the database | |
team_queryset = Team.objects.get(name="tigers") | |
# Hits the database again to get the related User objects | |
user = team_queryset.user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment