Skip to content

Commit f181e89

Browse files
committed
Fix docs for pagination using RequestConfig
1 parent c97bf49 commit f181e89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,14 @@ pass in the current page number, e.g.
298298
return render_to_response('people_listing.html', {'table': table},
299299
context_instance=RequestContext(request))
300300
301-
If you're using ``RequestConfig``, pass pagination options to ``configure()``,
301+
If you're using ``RequestConfig``, pass pagination options to the constructor,
302302
e.g.:
303303

304304
.. code-block:: python
305305
306306
def people_listing(request):
307307
table = PeopleTable(Person.objects.all())
308-
RequestConfig(request).configure(table, paginate={"per_page": 25})
308+
RequestConfig(request, paginate={"per_page": 25}).configure(table)
309309
return render_to_response('people_listing.html', {'table': table},
310310
context_instance=RequestContext(request))
311311

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy