Add get_model method to classes created with page_index_factory