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

[Bug 1187070] Don't use repr for Documents in DocumentLink. #2609

Merged

Conversation

mythmon
Copy link
Contributor

@mythmon mythmon commented Jul 28, 2015

I'm not sure why, but this causes some Django templates to get very confused and throw unicode decode errors. In particular, when trying to delete documents, if the document is linked to another document and one of those two documents has unicode in the title, the '%r' in the format string throws an error. Changing these to %s fixes the delete page.

I still don't know what is going on here. I tried and failed to reproduce it.

r?

I'm not sure why, but this causes some Django templates to get very
confused and throw unicode decode errors. In particular, when trying to
delete documents, if the document is linked to another document and one
of those two documents has unicode in the title, the '%r' in the format
string throws an error. Changing these to %s fixes the delete page.

I still don't know what is going on here. I tried and failed to
reproduce it.
@rehandalal
Copy link
Contributor

weird. but r+

rehandalal added a commit that referenced this pull request Jul 28, 2015
…-1187070

[Bug 1187070] Don't use repr for Documents in DocumentLink.
@rehandalal rehandalal merged commit 49903ec into mozilla:master Jul 28, 2015
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