Fix coersion on django 1.6