Without this, Django builds queries with which compare tables' "id" fields to `("confirmation_confirmation"."object_id")::bigint`; the explicit cast prevents the index added in the previous commit from being used.