pub async fn course_has_other_page(
conn: &mut PgConnection,
id: Uuid,
course_id: Uuid,
page_id: Uuid,
) -> ModelResult<bool>Expand description
Whether the course has a page other than page_id in page language group id.
Locks the group until the transaction ends, so concurrent publishes pairing pages with it see
each other’s pages; call it after inserting page_id.