- def __init__(self, template=None, window=None, margin=None):
+ def __init__(self, template=None, window=None, margin=None, ignored_vars=None):
def render(self, context):
template_list = ['pagination/pagination.html']
def render(self, context):
template_list = ['pagination/pagination.html']
- new_context = paginate(context, window=self.window, margin=self.margin)
+ new_context = paginate(context, window=self.window, margin=self.margin, ignored_vars=ignored_vars)
if self.template:
template_list.insert(0, self.template)
return loader.render_to_string(template_list, new_context)
if self.template:
template_list.insert(0, self.template)
return loader.render_to_string(template_list, new_context)