Keep compat with older versions of django