L
L
Larisa .•º2017-03-21 13:41:36
Django
Larisa .•º, 2017-03-21 13:41:36

How to get queryset from django-table2?

using generic django-table2 to generate tables

class TestTable(tables.Table):
    id = tables.Column(accessor='pk', verbose_name='№', order_by=('pk'))

how it is possible to receive in view queryset of the given table?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-03-21
@dimonchik2013

in the same place, distinguishing the documentation
instead of .all() any queriset, the parameters are tables, it is possible without

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question