def page_actors(request, actors, per_page):
  if len(actors) > per_page:
    more = actors[-2].nick
    return actors[:-1], more
  return actors, None
attempts to break a result into pages
dataset/ETHPy150Open CollabQ/CollabQ/common/util.py/page_actors