django-geoposition icon indicating copy to clipboard operation
django-geoposition copied to clipboard

Error value to long when manually saving Geopositionfield

Open dezmaeth opened this issue 7 years ago • 1 comments

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

Python 3.6:

merchant.position = Geoposition(-32.929099000000000785,-71.549950999999992973)
merchant.save()

dezmaeth avatar Jan 03 '18 19:01 dezmaeth

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

elcolie avatar Feb 23 '18 08:02 elcolie