Support for old django 1.4