make this django 1.7 ready