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

Error value to long when manually saving Geopositionfield #98

Open
dezmaeth opened this issue Jan 3, 2018 · 1 comment
Open

Error value to long when manually saving Geopositionfield #98

dezmaeth opened this issue Jan 3, 2018 · 1 comment

Comments

@dezmaeth
Copy link

dezmaeth commented Jan 3, 2018

psycopg2.DataError: value too long for type character varying(42)

Python 3.6:

merchant.position = Geoposition(-32.929099000000000785,-71.549950999999992973)
merchant.save()
@elcolie
Copy link

elcolie commented Feb 23, 2018

@dezmaeth How did you solve the problem?
My workaround is DjangoREST serializer meta class. Then I can POST/PUT/PATCH that field

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

No branches or pull requests

2 participants