def get_query_without_page(get_params):
    """
    This is used so we can show the pagination properly keeping the search results.
    """
    query_string_without_page = get_params.copy()
    if 'page' in query_string_without_page:
        del query_string_without_page['page']
    return query_string_without_page.urlencode()
