Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[flake8]
select = B,B9,C,DAR,E,F,N,RST,S,W
ignore = E203,E501,W503,C901,B950,DAR003
ignore = E203,E501,W503,C901,B950
max-line-length = 80
max-complexity = 10
docstring-convention = google
Expand Down
20 changes: 10 additions & 10 deletions src/django_pagination_bootstrap/templatetags/pagination_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,18 @@ def paginate(context, window=DEFAULT_WINDOW, hashtag=""):

Args:
context:
Dictionary-like data structure and must contain the following keys
paginator - a ``Paginator`` or ``QuerySetPaginator`` object.
page_obj - the result of calling the page method on the
aforementioned ``Paginator`` or ``QuerySetPaginator`` object, given
the current page.
getvars (optional) - a dictionary of all of the **GET** parameters in the current request.
This is useful to maintain certain types of state, even when requesting
a different page.
Dictionary-like data structure and must contain the following keys
paginator - a ``Paginator`` or ``QuerySetPaginator`` object.
page_obj - the result of calling the page method on the
aforementioned ``Paginator`` or ``QuerySetPaginator`` object, given
the current page.
getvars (optional) - a dictionary of all of the **GET** parameters in the current request.
This is useful to maintain certain types of state, even when requesting
a different page.
window:
Optional. Defaults to DEFAULT_WINDOW.
Optional. Defaults to DEFAULT_WINDOW.
hashtag:
Optional. Defaults to "".
Optional. Defaults to "".

Returns:
A Digg-like display of the available pages, given the current page.
Expand Down