#snippet code for server side pagination in django endless pagination #Usage: new_page(page_data, data_total)