I am trying to write into a file (in Python), but it says:
'ManyRelatedManager' object has no attribute 'encode'
Here is the code:
self.writer.writerow([s.encode('utf-8') for s in row]) Is there a way to avoid/fix this ?
I am trying to write into a file (in Python), but it says:
'ManyRelatedManager' object has no attribute 'encode'
Here is the code:
self.writer.writerow([s.encode('utf-8') for s in row]) Is there a way to avoid/fix this ?