Skip to content

Commit

Permalink
Encoded the redirect view content for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jan 16, 2015
1 parent 102cc82 commit d5b1e4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bakery/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ def get_content(self):
<body></body>
</html>
"""
return html % self.get_redirect_url()
html = html % self.get_redirect_url()
return html.encode("utf-8")

@property
def build_method(self):
Expand Down

0 comments on commit d5b1e4a

Please sign in to comment.