core.models.delivery: Update is_last_delivery to use the last_delivery field.