You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It thus looks straightforward to pass the request, by default, to the Table such that the table can implement logic based on that request.
While the RequestConfig also injects the request object into the Table, that means it is not available at the time the __init__ function is called on the table, and people might try to generate a table without the RequestConfig.
The text was updated successfully, but these errors were encountered:
The
get_table_kwargs()
method allows to pass parameters when constructing a table instance:django-tables2/django_tables2/views.py
Lines 141 to 153 in b0040fc
and a
Table
can work with arequest
parameter:django-tables2/django_tables2/tables.py
Lines 255 to 276 in b0040fc
It thus looks straightforward to pass the request, by default, to the
Table
such that the table can implement logic based on that request.While the
RequestConfig
also injects therequest
object into theTable
, that means it is not available at the time the__init__
function is called on the table, and people might try to generate a table without theRequestConfig
.The text was updated successfully, but these errors were encountered: