Created
January 17, 2017 20:04
-
-
Save kennethreitz/d1a75da4f9fa62e46461dad20ef09f1e to your computer and use it in GitHub Desktop.
Django Queryset Coding Convention
This file contains hidden or 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
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