Skip to content

Instantly share code, notes, and snippets.

@kennethreitz
Created January 17, 2017 20:04
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 kennethreitz/d1a75da4f9fa62e46461dad20ef09f1e to your computer and use it in GitHub Desktop.
Save kennethreitz/d1a75da4f9fa62e46461dad20ef09f1e to your computer and use it in GitHub Desktop.
Django Queryset Coding Convention
q = Employee.objects.filter(name='test', id=5).select_related('tasks')
q = q.order_by('first_name', 'last_name')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment