From 632fc98f7787316f23e27d5fccebc9e8cc77dfb7 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 24 Jun 2015 12:57:23 +0100 Subject: [PATCH] Fix link headers in examples, as per RFC5988. --- docs/api-guide/pagination.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api-guide/pagination.md b/docs/api-guide/pagination.md index 687e4dc4b..15ebc6229 100644 --- a/docs/api-guide/pagination.md +++ b/docs/api-guide/pagination.md @@ -246,11 +246,11 @@ Let's modify the built-in `PageNumberPagination` style, so that instead of inclu previous_url = self.get_previous_link() if next_url is not None and previous_url is not None: - link = '<{next_url}; rel="next">, <{previous_url}; rel="prev">' + link = '<{next_url}>; rel="next", <{previous_url}>; rel="prev"' elif next_url is not None: - link = '<{next_url}; rel="next">' + link = '<{next_url}>; rel="next"' elif previous_url is not None: - link = '<{previous_url}; rel="prev">' + link = '<{previous_url}>; rel="prev"' else: link = ''