Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unicode error when printing #60

Merged
merged 1 commit into from Mar 3, 2015

Conversation

zalew
Copy link
Contributor

@zalew zalew commented Mar 2, 2015

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.

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
Copy link
Owner

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

gregmuellegger added a commit that referenced this pull request Mar 3, 2015
Fix unicode error when printing in loadtestdata command.
@gregmuellegger gregmuellegger merged commit 5c21fd6 into gregmuellegger:master Mar 3, 2015
@gregmuellegger
Copy link
Owner

It's merged. Thanks for the contribution!

@zalew
Copy link
Contributor Author

zalew commented Mar 4, 2015

:D tx for the lib, very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants