Fixes unicode error related to printing output of model instance. Came across this when autogenerated model instance had unicode chars in name comming from FK model repr.
"""
autofixture/management/commands/loadtestdata.py", line 101, in print_instance
self.format_output(instance),
UnicodeEncodeError: 'ascii' codec can't encode character
"""
Fixes unicode error related to printing output of model instance. Came across this when autogenerated model instance had unicode chars in name comming from FK model repr.
""" autofixture/management/commands/loadtestdata.py", line 101, in print_instance self.format_output(instance), UnicodeEncodeError: 'ascii' codec can't encode character """
One letter fix, lucky us we don't charge by KLOC.