Fixing problem with django 1.7