David Winterbottom
d9944c2660
Rework availability logic to use less DB queries
* Fixes bug with prefetch_related where looking up secondary relations
raises a DoesNotExist exception.
* Reworks cached partner map to use PKs instead of names.
Availability logic from product class is looked up in product obj
rather than in wrapper to avoid unnecessary queries.