Created
November 24, 2020 13:24
-
-
Save barhoring/56b187019d31c64445127fc5c83826b3 to your computer and use it in GitHub Desktop.
Django - Iterate over queryset
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
qs = Clinic.objects.prefetch_related('users') | |
values = tmp.values() | |
for item in values: | |
print(item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment