removed use of django 1.7-specific features