Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Looking at the method mentioned in the error message:

https://github.com/openstack/horizon/blob/master/horizon/tables/base.py#L1238

The comment advises overriding this method if you don't want to return an id attribute (which a string wouldn't have).

I would suggest adding something like this to your DataTable:

    def get_object_id(self, datum):
        return datum

and see if this resolves the issue. Note the comment on get_object_id also warns that what you return should be unique for each row -- hopefully your list of strings is made up of unique strings!