Django 1.6 compatibility fix for m2m direct assignment