[Fixed]-Disable pagination in django-tables2?

18👍

You want to do:

RequestConfig(request, paginate=False).configure(my_table)

0👍

If you are working with class based views of Django, just override the get_table_pagination method in your view class and get_caption_display method in table class:

class YourView(SingleTableMixin, generic.TemplateView):
    def get_table_pagination(self):
        return False

In your table class,

class YourTable(Table):
    def get_caption_display(self):
        return False
👤Gunjan

Leave a comment