accomodate older version of django