gregmuellegger / django-autofixture

Can create auto-generated test data.
BSD 3-Clause "New" or "Revised" License
462 stars 118 forks source link

Fix unicode error when printing #60

Closed zalew closed 9 years ago

zalew commented 9 years ago

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.

gregmuellegger commented 9 years ago

:D +1 for your comment. Very nice ;)

gregmuellegger commented 9 years ago

It's merged. Thanks for the contribution!

zalew commented 9 years ago

:D tx for the lib, very useful.