Add data to tables
Hi,
I am trying to add a panel in OpenStack which displays some hard coded values. However when I am trying to access that data from the dashboard, I am getting the below error.
File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1498, in get_object_id
return datum.id
TemplateSyntaxError: 'str' object has no attribute 'id'
Below is the extract from my views.py file
def get_data(self):
L = ["test","test1","test3","test4","test5","test6"]
return L
Any idea on what could go wrong?
Thanks Toby