Skip to content

Instantly share code, notes, and snippets.

@barhoring
Created November 24, 2020 13:24
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 barhoring/56b187019d31c64445127fc5c83826b3 to your computer and use it in GitHub Desktop.
Save barhoring/56b187019d31c64445127fc5c83826b3 to your computer and use it in GitHub Desktop.
Django - Iterate over queryset
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