Skip to content

Instantly share code, notes, and snippets.

@LucasMagnum
Created August 17, 2017 20:20
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 LucasMagnum/5d5e54e80a7ec4b1c1b399e65081a4c4 to your computer and use it in GitHub Desktop.
Save LucasMagnum/5d5e54e80a7ec4b1c1b399e65081a4c4 to your computer and use it in GitHub Desktop.
Debugger product list with select related #djangotip02
# $ 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