Feb-24-2021, 04:16 PM
use a
The answer is likely something like having to use the index (eg
print(value = getattr(self.entity, attribute.slug))
to see what is returned. .strip() is a string function. And it says you are trying it on a list.The answer is likely something like having to use the index (eg
value[0].strip()
) for each item in value
.