Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per page #36

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Per page #36

wants to merge 14 commits into from

Conversation

maksymx
Copy link

@maksymx maksymx commented Aug 15, 2012

Added an option, when user can choose a number of objects per page. Developer can add this option like inclusion tags {% perpageselect 10 20 30 %} and {% perpageanchors 10 20 30 %} where "10 20 30" are numbers of objects perpage (it can be absolutely divert numbers). I also use a django session for it

register.inclusion_tag('pagination/pagination.html', takes_context=True)(
paginate)
register.tag('autopaginate', do_autopaginate)


@register.inclusion_tag('pagination/perpageselect.html', takes_context='True')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be:

@register.inclusion_tag('pagination/perpageselect.html', takes_context=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants