tangentlabs/django-oscar — pull request #252 by fjern (2012-07-27 12:19:51+00:00)
Title: Check whether forms are valid in the category formset clean method

Currently if a form in the dahsboard product-category formset is not valid, we get an attribute error in the get_num_categories method.

We can just check whether the attribute is there, if it's ok that we're counting only valid category choices for the total category count.