@staticmethod
def nice_page_range(page_range, current_page):
    """
        Returns a page range

        :param page_range:
        :param current_page:
        :return:
        """
    display_around = 2
    if len(page_range) > display_around:
        start = (0 if current_page - display_around - 1 < 0 else 
            current_page - display_around - 1)
        end = None if current_page + display_around > len(page_range
            ) else current_page + display_around
        page_range = page_range[start:end]
    return page_range
