tangentlabs/django-oscar — pull request #362 by elbaschid (2012-10-24 06:21:02+00:00)
Title: Fix error prefetching stockrecord-related models

Trying to do a prefetch_selected() on models with a relationship
to StockRecord such as 'stockrecord__product' raises an exception
when no stock record exists for the product. Since especially
parent products don't need to have a stock record these prefetch
statements need to be removed.