Export to GitHub

django-pagination - issue #4

autopaginate second parameter should be a variable


Posted on Jul 16, 2008 by Helpful Ox

would be nice if we could do:

autopaginate object_list number_of_items

where number_of_items can be a variable defined in the context or a number.

Should I create a patch and submit?

Comment #1

Posted on Jul 21, 2008 by Happy Kangaroo

Great idea! Definitely submit a patch. I'd love to have that functionality.

Comment #2

Posted on Jul 21, 2008 by Helpful Ox

Hello,

Here's the path. You should try to include this on contrib of django since it's really usefull.

Attachments

Comment #3

Posted on Sep 19, 2008 by Swift Panda

(No comment was entered for this change.)

Comment #4

Posted on Sep 19, 2008 by Swift Panda

I could use that at the moment, ok if I check in?

Comment #5

Posted on Oct 20, 2008 by Happy Kangaroo

This looks good, I simply didn't see this ticket :) The patch will need a bit of updating to latest trunk django- pagination. I'll apply it after Pinax 0.5 release.

Comment #6

Posted on Oct 24, 2008 by Happy Kangaroo

Added in r41. Thanks, lfrodrigues, you rock!

Status: Fixed

Labels:
Type-Defect Priority-Medium