Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to add data to tables in horizon Dashboard

Hi,

I'm trying add some data in tables in a panel that i created, but this data come from a simple method that i develop. This method return a list of strings and i put this method on get_data method on views.py file.

So, when i execute the Horizon an error appears:

Exception Type: TemplateSyntaxError Exception Value:'str' object has no attribute 'id' Exception Location:/home/labsc/Documentos/horizon/horizon/tables/base.py in get_object_id, line 1244

but when i change the list to a empty list o int list, stay normal. the questions is:

How i can return a string list to the tables??

How to add data to tables in horizon Dashboard

Hi,

I'm trying add some data in tables in a panel that i created, but this data come from a simple method that i develop. This method return a list of strings and i put this method on get_data method on views.py file.

So, when i execute the Horizon an error appears:

Exception Type: TemplateSyntaxError
Exception Value:'str' object has no attribute 'id'
Exception Location:/home/labsc/Documentos/horizon/horizon/tables/base.py in get_object_id, line 1244 

1244

but when i change the list to a empty list o int list, stay normal. the questions is:

How i can return a string list to the tables??