From a5208e8c12b031605d78e813c4d9f70f6ae22851 Mon Sep 17 00:00:00 2001 From: Steve Lacey Date: Mon, 2 Mar 2015 09:18:04 +0000 Subject: [PATCH] Update pagination.md --- docs/api-guide/pagination.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/api-guide/pagination.md b/docs/api-guide/pagination.md index c3b19752d..8ec000e2e 100644 --- a/docs/api-guide/pagination.md +++ b/docs/api-guide/pagination.md @@ -96,10 +96,9 @@ Let's modify the built-in `PageNumberPagination` style, so that instead of inclu ```py from rest_framework.pagination import PageNumberPagination from rest_framework.response import Response -from rest_framework.utils.urls import remove_query_param, replace_query_param -class LinkHeaderPagination(pagination.PageNumberPagination): +class LinkHeaderPagination(PageNumberPagination): def get_paginated_response(self, data): headers = { 'X-Page': self.page.number,