tangentlabs/django-oscar — pull request #315 by elbaschid (2012-09-25 01:50:20+00:00)
Title: UPC validation is now working correcly

The previous UPC validation in ``ProductForm`` broke updating the
a product. I realised this while digging around to fix the broken
``StockRecord`` issue that broke the CI build.

The validation now uses Django's validation of ``unique`` fields
instead and works.

The ``StockRecord`` issue was related to creating a form in the
update view providing stock record data in POST with ``partner``
empty. I corrected that and added a test case for it.

**Note** This fixes an issue caused by PR #312