gt; aggregates the data into a list of dictionaries. I read to use the
>>> SingleTableMixin that all I needed was an iterable containing a data
>>> structure that has a key(a list of dicts) and then to instantiate a table
>>> in tables.py and pass to a my views Class. I
get_response
[Thu Sep 17 23:07:26.871073 2020] [wsgi:error] [pid 39120] [remote
142.136.2.27:45290] response = wrapped_callback(request,
*callback_args, **callback_kwargs)
[Thu Sep 17 23:07:26.871079 2020] [wsgi:error] [pid 39120] [remote
142.136.2.27:45290] TypeError: object() takes no param
ueries my database and
>> aggregates the data into a list of dictionaries. I read to use the
>> SingleTableMixin that all I needed was an iterable containing a data
>> structure that has a key(a list of dicts) and then to instantiate a table
>> in tables.py a
pass to a my views Class. I am getting an error when I do
> this TypeError: Object() takes no parameters. I have included a link to
> the django tables 2 doc and my code below:
>
> #views.py
> from django_tables2.views import SingleTableMixin
> from django_tables2.ex
list of dicts) and then to instantiate a table
in tables.py and pass to a my views Class. I am getting an error when I do
this TypeError: Object() takes no parameters. I have included a link to
the django tables 2 doc and my code below:
#views.py
from django_tables2.views import
5 matches
Mail list logo