Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

is_endless param to template tag doesn't need the name #10

Open
spacedman opened this Issue · 1 comment

2 participants

@spacedman

It looks from the docs like you do "per_page 25 is_endless False", but there's no reference to the "is_endless" name in the django template-sugar definition. Its just the variable:

    Optional([Variable('is_endless')])])

so you need to do just "... per_page 25 False" to get the is_endless variable set to true. Not helped by a missing ] in the docstring :)

def paginate(context, queryset_or_list, request, asvar, per_page=25, is_endless=True):
"""{% paginate queryset_or_list from request as foo[ per_page 25][ is_endless False %}"""

Barry

@inactivist

This one bit me in 0.2.5. Doc updated needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.