tangentlabs/django-oscar — pull request #236 by marekbrzoska (2012-07-17 10:17:13+00:00)
Title: Add missing save m2m

Suppose we have:

class Product(oscar.apps.catalogue.abstract_models.AbstractProduct):
tags = django.db.models.ManyToManyField('Tag')

class Tag(django.db.models.Model):
pass

This will cause oscar.apps.dashboard.catalog.forms.ProductForm display mulit select box for selecting tags for a product. But the tags won't be saved due to commit=False passed to to forms save method. This fixes it by calling save_m2m is such field exists for the form.