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

Encode values to bytes in Python 3 #57

Merged
merged 2 commits into from
Dec 18, 2015
Merged

Conversation

DebauchedSloth
Copy link

This solves a problem in GeoDjango in python 3, where the Geo objects are coming in as objects and are converted for the DB as strings. By forcing encoding, we ensure that they are able to be inserted.

Without the encoding change, the final join (return b''.join(parts)) will fail with a type conversion error.

lopuhin added a commit that referenced this pull request Dec 18, 2015
Encode values to bytes in Python 3
@lopuhin lopuhin merged commit 68fcd05 into chtd:master Dec 18, 2015
@lopuhin
Copy link
Member

lopuhin commented Dec 18, 2015

Thank you!

@DebauchedSloth
Copy link
Author

Thanks!

On Fri, Dec 18, 2015 at 8:40 AM, Konstantin Lopuhin <
[email protected]> wrote:

Thank you!


Reply to this email directly or view it on GitHub
#57 (comment).

Greg White
(781) 248-4852

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.

2 participants