shtalinberg / django-el-pagination

Django endless pagination tools. Ajax, multiple and lazy pagination, Twitter-style and Digg-style pagination.
MIT License
307 stars 71 forks source link

AjaxListView support multiple paginations in the same page? #51

Closed adriancarayol closed 1 year ago

adriancarayol commented 8 years ago

AjaxListView can support multiple paginations in the same page? I see doc (http://django-el-pagination.readthedocs.io/en/latest/multiple_pagination.html), but AjaxListView says nothing, only it appears for function.

I try with: class Foo(AjaxListView): page_template = 'foo.html, foo2.html' and class Foo(AjaxListView): page_templates = 'foo.html, foo2.html' Thanks.

shtalinberg commented 8 years ago

AjaxListView should support. Need to try and add example to documentation

tsotnesharvadze commented 7 years ago

how to fix?

int-ua commented 7 years ago

Looks like template names are hardcoded in case of AjaxListView and key is not used, so doesn't look like multiple templates and, in consequence, multiple paginations are not supported: https://github.com/shtalinberg/django-el-pagination/blob/99de42e47f5bf1a021e4b46f4efbb476f8ff2684/el_pagination/views.py#L142

        return '{0}/{1}{2}{3}.html'.format(
            opts.app_label,
            opts.object_name.lower(),
            self.template_name_suffix,
            self.page_template_suffix,
)
shtalinberg commented 1 year ago

it should works as described in documentation