updated to use django 1.4