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

Add ability to specify template other than pagination/pagination.html #1

Open
bjunix opened this issue Dec 5, 2009 · 4 comments
Open

Comments

@bjunix
Copy link

bjunix commented Dec 5, 2009

It would be nice to specify different templates for pagination, so there is not only one site-wide pagination template.

I added the new template_tag {% paginate_with_template 'template_name' %} in my fork to accomplish this. You can find it here:

http://github.com/bjunix/django-pagination/commit/6a9d4d8fa7a49bc86260b679a816423ba6123027

Maybe this is also helpful for others.

@bjunix
Copy link
Author

bjunix commented Dec 22, 2009

Any opinions on this? Would love to see this sort of functionality upstream...

@ghost
Copy link

ghost commented Jan 6, 2010

What would be the added benefit? Why not use pagination.html and alter it so it fits? Can you elaborate on the added benefits?

@bjunix
Copy link
Author

bjunix commented Jan 6, 2010

I would like to use different templates for pagination, so I do not have one side-wide or app-wide pagination template only

@ghost
Copy link

ghost commented Jan 6, 2010

agreed, that sounds like a good enough reason to add this ability; we now need a patch ;-)

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

No branches or pull requests

1 participant