compatibilty with django 1.5