Update to work with for django 1.7.1