mozilla/kitsune — pull request #998 by willkg (2012-12-11 01:57:13+00:00)
Title: [bug 818908] Fix ValueError

product.get('products') can return None in the Sync and Other product
cases and then Django gets fussy. This tweaks that so that we only
apply the filter if product has a products list.

Also, I fixed 3 pep-8 issues.

@rlr Can you look this over and make sure it's ok? I'm pretty sure this is correct, but you wrote that code and would know better. r?