update to run on django 1.7