Pull requests

#45 Declined
Repository
digitalpbk digitalpbk
Branch
default
Repository
chris1610 chris1610
Branch
default

Product model get_subtypes(), RequestContext removal for GA template tag, removing redundant queries in Contact.objects.from_request

Author
  1. Arun prabhakar
Reviewers
Description

Product get_subtypes() does not handle the case when the subtype is loaded via select_related() and is None.

satchmo_google.py template tag show_tracker was using RequestContext which evaluates all context processors and affects performance.

Contact.objects.from_request() can return the contact early on avoiding 1 more query below.

Comments (2)