support for new version of django - 1.6