Created
August 17, 2017 20:20
-
-
Save LucasMagnum/5d5e54e80a7ec4b1c1b399e65081a4c4 to your computer and use it in GitHub Desktop.
Debugger product list with select related #djangotip02
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
# $ python app/manage.py shell | |
from products.queries import ( | |
products_list, | |
products_list_select_related, | |
debugger_products_list_select_related | |
) | |
assert products_list() == products_list_select_related() | |
_ = debugger_products_list_select_related() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment